1.

State two features of a constructor.

Answer»

Two features of a constructor: 

1. Its names is same as the name of the class. 

2. It is automatically executed at the time of object creation.



Discussion

No Comment Found

Related InterviewSolutions