What is class and object in Java?

A class is a non-primitive or user-defined data type in Java, while an object is an instance of a class . A class is a basis upon which the entire Java is built because class defines the nature of an object.

Sizin İçin Seçtik  What is class and object in OOPS with real time example?

Leave a Reply

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