मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

What is a constructor? - Computer Science 1

Advertisements
Advertisements

प्रश्न

What is a constructor?

लघु उत्तर

उत्तर

  1. A constructor is a special member function of a class. Its task is to initialize the objects of its class.
  2. It is special because its name is the same as that of the class to which it belongs.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2023-2024 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×