2.7 Concepts that Define Object Orientation
Necessary for a system or language to be OO
- Identity
- Each object is distinct from each other object, and can be referred to
- Two objects are distinct even if they have the same data
- Classes
- The code is organized using classes, each of which describes a set of objects
- Inheritance
- The mechanism where features in a hierarchy inherit from superclasses to subclasses
- Polymorphism
- The mechanism by which several methods can have the same name and implement the same abstract operation.