Limited access

Upgrade to access all content for this subject

A Vegetable takes on many of the characteristics and functionality of a Food and a Carrot takes on many of the characteristics and functionality of a Vegetable. Vegetable, Food, and Carrot are all classes that we define and Vegetable extends Food and Carrot extends Vegetable.

What concept does this relationship describe?

A

Inheritance.

B

Polymorphism.

C

Situational extension.

D

Data abstraction.

E

Procedural abstraction.

Select an assignment template