English

State two features of a constructor. - Computer Applications

Advertisements
Advertisements

Question

State two features of a constructor.

Short Answer

Solution

  1. A constructor has the same name as the class name.
  2. A constructor is used for initializing the data members. 
shaalaa.com
  Is there an error in this question or solution?
Chapter 7: Constructors - Review Insight [Page 415]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 7 Constructors
Review Insight | Q 5. | Page 415
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×