Inheritance/Polymorphism  «Prev 

Typing Conversions - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. In a class hierarchy defined by public inheritance that creates a related set of user types, __________ may be used to point to any of the objects.
  A. a derived class pointer
  B. a char* pointer
  C. a base class pointer
  D. any pointer declared in any of the classes in the hierarchy

2. The relationship between __________ and its subtype is called an ISA relationship.
  A. a privately inherited class
  B. a publicly inherited class
  C. a protected inherited class
  D. any inherited class

3. A constructor in the base class:
  A. must be explicitly called by the derived class constructor
  B. is implicitly called by all derived class constructors with the same parameter list
  C. must be repeated (copied) into the derived class if it is needed
  D. may not be invoked explicitly

Correct answers:

Your Score: 0