2. Inheritance
OOP supports inheritance
• similar classes can share a parent and override features
• improves modularity, avoids duplication
• classes can only have one parent (unlike some other languages)
• classes can have many children
• there can be as many generations of inheritance as we need
14