When you use new, base class objects cannot access the derived class method even if it points to a derived type object.
When you use override, base class objects can access the derived class method when it points to a derived type object.
When you use override, base class objects can access the derived class method when it points to a derived type object.
No comments:
Post a Comment