Question: Goal: Learn how to use inheritance. Assignment: Imagine you are creating a flight simulator program. The flight simulator must have many different aircraft models so
Goal: Learn how to use inheritance.
Assignment: Imagine you are creating a flight simulator program. The flight simulator
must have many different aircraft models so that pilots using your program are able to
train on more than one type of aircraft.
Aircraft come in many shapes and sizes, but they all have the same basic properties,
such as wingspan, passenger limit and top speed. We could spend time creating a
class for each one but it would be far more efficient to have a basic blueprint that we
can inherit the basic properties from.
Assume that the parent class Aircraft has already been created. Create a class
called PropellerPlane that inherits the methods and properties of the Aircraft class.
You do not have to do anything within this class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
