1.

Write two characteristics of a constructor.

Answer»

i. Constructor has the same name as that of the class it belongs to.

ii. Constructor is executed automatically when an object of class is created.



Discussion

No Comment Found

Related InterviewSolutions