हिंदी

Explain two features of a constructor. - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain two features of a constructor. 

लघु उत्तरीय

उत्तर

  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. | पृष्ठ ४१८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×