English

Write Two Characteristics of a Constructor.

Advertisements

Question

Write two characteristics of a constructor.

One Line Answer
Advertisements

Solution

(i) A constructor has the same name as of class.

(ii) Constructor gets invoked when an object is created.

shaalaa.com
  Is there an error in this question or solution?
2017-2018 (March) Set 1
Advertisements
Share
Notifications



      Forgot password?
Use app×