Chapter 3
Object-Oriented Programming in C#
Section 2
Using Abstraction
In abstraction, we abstract the common functionality and put it in a single class that will be used to provide this shared functionality to all classes that inherit from it. Let’s see how that works. - Create SpaceCadet and inherit SpacePrivate and LabResearcher - Check for potential fixes - Add another class, PlanetExplorer and inherit SpaceCadet class