Advertisements
Advertisements
प्रश्न
What is a constructor?
लघु उत्तरीय
उत्तर
- A constructor is a special member function of a class. Its task is to initialize the objects of its class.
- It is special because its name is the same as that of the class to which it belongs.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?