What are object and classes?

The basic difference between Class and Object is that – Class is a user-defined datatype that has its own data members and member functions whereas an object is an instance of class by which we can access the data members and member functions of the class.

Sizin İçin Seçtik  What methods do all Java objects have?

Leave a Reply

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