English

Explain two features of a constructor. - Computer Applications

Advertisements
Advertisements

Question

Explain two features of a constructor. 

Short Answer

Solution

  1. The constructor has the same name as the class.
  2. No value, not even void, is returned by constructors.
shaalaa.com
  Is there an error in this question or solution?
Chapter 7: Constructors - EXERCISES [Page 418]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 7 Constructors
EXERCISES | Q V. 7. | Page 418
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×