Concept of Constructor
Topics
Advertisements
CISCE: Class 10
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.
