Advertisements
Advertisements
प्रश्न
Why do we need a constructor as a class member?
लघु उत्तरीय
उत्तर
A constructor is a class member that can be called automatically when generating an object. A call to the constructor is required to complete the creation of an object.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Constructors - EXERCISES [पृष्ठ ४१८]