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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?