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?