What can a class have in Java?

A class describes the data and the methods of its objects . Every object belongs to some class. An object contains data (instance variables) representing its state, and instance methods, which are the things it can do. A class may also contain its own data (class variables) and class methods.

Sizin İçin Seçtik  What is meant by constructor in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *