An object is an abstract data type with the addition of polymorphism and inheritance . Rather than structure programs as code and data, an object-oriented system integrates the two using the concept of an “object”. An object has state (data) and behavior (code). Objects can correspond to things found in the real world.
Read moreWhat is the difference between type and object?
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 .
Read more