हिंदी

Invoking a Constructor

Advertisements

Topics

Invoking a Constructor:

A constructor can be invoked at the time of creating an object of a class. The syntax of invoking a constructor is as shown below:  

<class name> < object name> = new <constructor()>;

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×