मराठी

Explain two features of a constructor.

Advertisements

प्रश्न

Explain two features of a constructor. 

लघु उत्तर
Advertisements

उत्तर

  1. The constructor has the same name as the class.
  2. No value, not even void, is returned by constructors.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Constructors - EXERCISES [पृष्ठ ४१८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 7 Constructors
EXERCISES | Q V. 7. | पृष्ठ ४१८
Advertisements
Share
Notifications



      Forgot password?
Use app×