10.9. Wrap-Up

This chapter introduced inheritance—the ability to create a class by absorbing an existing class’s members and embellishing them with new capabilities. Through a series of examples using an employee inheritance hierarchy, you learned the notions of base classes and derived classes and used keyword Inherits to create derived classes that inherit members from base classes. We introduced the access modifiers Protected and Friend. Derived class methods can access Protected base class members. Friend members are accessible to classes declared in the same assembly as the class that declares the Friend members. You learned how to access base class members with MyBase and how to access the current object with the Me and MyClass references. ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.