Reply to comment
Thu, 10/01/2015 - 21:37 — o
- The constructor is executed whenever an instance of a class comes into scope
- A constructor does not return a value; it creates an object. Therefore:
- You cannot specify a return type when declaring a constructor (not even void)
- A constructor cannot contain a return a statement