Part 1:
- Using inheritance allows us to not have to redefine info that we’ve already defined inside another class. This saves time/work, and also allows for inheritance-chain wide updates to be made a lot easier.
- Superclass: Appliances, Subclasses: Refrigerator, Oven, Microwave, etc.
Part 2:
- A superclass is a parent class, it is the class that subclasses inherit from. A subclass is a child class, the class that does the inheriting.
- class Refrigerator : public Appliance
- A subclass inherits the built in functionality of its superclass, but it can also have its own unique data members and member functions, thus extending the capabilities of the parent class.