Core Java Interview Questions :What is Constructor?
* A constructor is a special method whose task is to initialize the object of its class.:constuctor name and class name is must same:=>The main purpose of constructor is initializing the object with default values.
No comments:
Post a Comment