Whenever you're ready, walk me through how you'd approach this.
Explain inheritance and polymorphism in object-oriented programming and give an example of when you would use each.
Discuss how inheritance defines relationships between types, how method overriding enables runtime polymorphism, and the trade-offs of using these mechanisms. Use a concrete example in a mainstream object-oriented language.
Scope: focus on class-based object-oriented programming and distinguish inheritance from composition where relevant.