Constructor in Java - Revision Session - java by Kiran - Kiran sir

preview_player
Показать описание
Constructors in Java
Things to remember:
The constructor is a special method whose name is the same as that of the class name.
The constructor should not have any return type, not even void.
Constructors will be invoked by the JVM automatically whenever you create the object.
The constructor is a block of code similar to a method that is called when the instance of an object is created. It is useful for memory management. It provides data for the objects. In other words, it constructs values, which is why it is known as a constructor.

Рекомендации по теме
Комментарии
Автор

This is superb. Very informative. Thanks.

bhushanmali
Автор

Feedback: Sync issue in the whole video

himanshukhare