home *** CD-ROM | disk | FTP | other *** search
- When you specify the base class of a derived class, you can also
- specify the access that the derived class has to the base class.
- Access levels can be public, protected, or private. The default
- is private. In this example, derived1 and derived4 have private
- inheritance, while derived2 has protected inheritance, and
- derived3 has public inheritance.
-