Examlex

Solved

Consider a Class Plane and Three Subclasses, Glider, PropPlane and Jet

question 51

Essay

Consider a class Plane and three subclasses, Glider, PropPlane and Jet. What instance data that should be declared in Plane and what instance data should be declared in one of the three subclasses. Come up with at least 2 instance data unique to each of the four classes given that all instance data of Plane will be inherited into the subclasses.


Definitions:

Amino Acid

Organic compounds used as the building blocks of proteins, containing both an amino group and a carboxyl group.

Amide Group

A chemical functional group consisting of a carbonyl group linked to a nitrogen atom, commonly found in organic and biochemistry.

Side Chain

A group of atoms attached to a main part of a molecule and having a structure branching off from the main chain or ring in the molecule.

Amino Acid

Organic molecules that serve as the building blocks of proteins, containing both amino and carboxylic acid functional groups.

Related Questions