What is the difference between a type and a class?

An object’s class defines how the object is implemented. The class defines object’s internal state and the implementation of its operations. In contrast, an object’s type only refers to its interface – a set of requests to which it can respond.

Sizin İçin Seçtik  What is JDK used for?

Leave a Reply

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