DAY 12
WEEK 2
Implementing Inheritance
Yesterday, you learned about a number of object-oriented relationships, includ-
ing specialization/generalization. C++ implements this relationship through
inheritance.
Today, you will learn
- The nature of what inheritance is
- How to use inheritance to derive one class from another
- What protected access is and how to use it
- What virtual functions are
What Is Inheritance? ............................................................................................
What is a dog? When you look at your pet, what do you see? I see four legs in
service to a mouth. A biologist sees a network of interacting organs, a physicist
sees atoms and forces at work, and a taxonomist sees a representative of the
species canine domesticus.