Monday, November 17, 2014

New vs. Override

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.

No comments:

Post a Comment