You need polymorphism tutorials...

In a nutshell, the class keeps track of its virtual methods at runtime, as opposed to compile-time, thus even if a superclass's pointer is used, the correct...