Overriding Methods and Properties

By now, you probably agree that overriding classes is quite a brilliant concept. It helps you to structure your programs better, makes them easier to read, and helps you to build bigger and more complex projects, cleanly. But classes wouldn’t be so evolutionary if it weren’t for the ability to access certain functions of a base class from within the code of the derived class. Classes that bind to others can become extremely flexible.

Replacing methods or properties with others in a derived base class requires the base class to allow certain members to be overridden; these functions, methods, or properties must be explicitly marked so that they can be overridden later. In Visual Basic, the keyword Overridable is ...

Get Microsoft® Visual Basic® 2010 Developer’s Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.