1.

Define A Constructor?

Answer»

Constructor is a method USED to initialize the state of an OBJECT, and it gets invoked at the time of object creation. RULES forconstructor are:.
•Constructor Name should be same asclass name.
•Constructor must have no return TYPE.

Constructor is a method used to initialize the state of an object, and it gets invoked at the time of object creation. Rules forconstructor are:.
•Constructor Name should be same asclass name.
•Constructor must have no return type.



Discussion

No Comment Found