News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Basic Properties of constructor

Started by Kalyan, Aug 20, 2008, 11:20 AM

Previous topic - Next topic

Kalyan

Basic 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.