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 [पृष्ठ ४१८]