1.

Write two characteristics of a constructor.

Answer»

(i) Constructor has the same name as of class. 

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



Discussion

No Comment Found

Related InterviewSolutions