English

Write Two Characteristics of a Constructor. - Computer Applications

Advertisements
Advertisements

Question

Write two characteristics of a constructor.

One Line Answer

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
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×