I am trying to learn about main pillars of OOP. When I was reading Inheritance definition in Microsoft docs. there were this part:
Inheritance enables you to create new classes that reuse, extend, and modify the behavior that is defined in other classes.
From : https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/inheritance
All from this is clear to me but, My question is: Isn't part of this definition: "modify the behavior that is defined in other claeses", already Polymorphism?
As Polymorphism is basically said changing behavior of derived classes on same method call. In other words, when you call method Speak(), and you have derived classes Dog and Cat from Animal base class, both derived classes will perform different action on overridden Speak() method.
Thank you for answers. :)