constructor

A class use constructors to create objects. The constructor is a member function that is executed automatically whenever an object is created. 
* Constructors have the same name as the class so that compiler knows that the method is a constructor. 
* Constructors don’t have a return type, so it’s not possible to use return codes. The best way to signal constructor failure is therefore to throw an exception. 
* Constructors can have any access modifier.