हिंदी

Concept of Constructor

Advertisements

Topics

Concept of Constructor:

You have learnt that an object of a particular class contains instance variables. To perform various operations on the objects, it is also required to initialize their instance variables. You can do so by using a method having the same name as the class name. Such a method is called a 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×