Object-Oriented Concepts: Polymorphism

Опубликовано: 16 Июль 2026
на канале: James Smith
519
4

Let's do some polymorphism on the previous example (   • Object-Oriented Concepts: Inheritance  ). We're going to override the playMusic() method by redefining it in the derived class. So, while there is already a playMusic() in the base class that we inherit from, we can redefine ("morph" it by changing its shape) within the derived class.