- Create an abstract class called SpaceCadet. This is the first type of astronaut you can get when starting with training. The abstract class and its members are defined using the abstract keyword. A thing to note is that abstract classes cannot be instantiated. The members represent the skills that SpaceCadet will have, such as negotiation and basic weapons training:
public abstract class SpaceCadet { public abstract void ChartingStarMaps(); public abstract void BasicCommunicationSkill(); public abstract void BasicWeaponsTraining(); public abstract void Negotiation(); }
- Next, create another abstract class called SpacePrivate. This abstract class inherits from the SpaceCadet abstract class. What we are basically saying ...