Inheritance/Polymorphism  «Prev 

C++ Classes Subtypes - Exercise

Classes and Subtypes

Objective: Determine whether several pairs of example classes fit the definition of class and subtypes.

Instructions

This is a two-part exercise:
1) Below are examples of possible class/subtype pairs. Examine the pairs and decide which ones fit the definition of a class and its subtypes.

Class Subtype
Number BigInteger
Shape Circle
Circle Square
Employee Manager
Verb Noun

Type the appropriate pairs below and justify your choices.
2) Create 5 example pairs of your own that fit the class/subtype definition.
Type your example pairs below, then click the Submit button when you are ready to submit this exercise.