English

Why do we need a constructor as a class member? - Computer Applications

Advertisements
Advertisements

Question

Why do we need a constructor as a class member?

Short Answer

Solution

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
  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. 3. | Page 418
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×