OOP pattern vocabulary

  • Inheritance — "is-a"; extends parent class; overrides methods
  • Composition — "has-a"; holds a reference and delegates; preferred over deep inheritance
  • Polymorphism — same call dispatches to correct subclass method at runtime
  • Interface — contract (what methods must exist); implementations are interchangeable
  • Strategy pattern — extract varying behavior as a swappable dependency

Question 0 of 5

A class diagram shows: Dog extends Animal. Which OOP concept does this represent, and what does it imply?