Properties of constructor

September 10th, 2006 Admin Posted in Properties of constructor No Comments »

Properties of constructor

  • Constructor name and  class name should be the name.
  • Constructor will not have any return type not even void.
  • If you keep one  it will be treated as an ordinary method.
  • It is the first method that is invoked  automatically whenever you instantiate the class .
  • In the life time of an object constructor will be called only once.
AddThis Social Bookmark Button