Hello!
i have a question in understanding the principle of polymorphism.
is it polymorphism if the metode in a base class is virtual and "overriden" in a derived class? So if it wasent for virtual it wouldn't be polymorphism. If there wasn't a virtual method in the program it would only be inheritance and not inheritance with polymorphism?
i have a question in understanding the principle of polymorphism.
is it polymorphism if the metode in a base class is virtual and "overriden" in a derived class? So if it wasent for virtual it wouldn't be polymorphism. If there wasn't a virtual method in the program it would only be inheritance and not inheritance with polymorphism?
thank you, have a nice day and!