Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Objects Abstraction Data Structures
Quiz 4: Inheritance and Class Hierarchies
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 1
Short Answer
The objects of a derived class __________ the original data fields and members of a base class.
Question 2
Short Answer
Classes can be arranged in a hierarchy, with a top-level __________ class.
Question 3
True/False
Objects further down the hierarchy are more complex and less general than those further up.
Question 4
Short Answer
The __________ relationship between classes means that every instance of one class is or may be associated with one or more instances of the other class (but not necessarily the other way around).
Question 5
Multiple Choice
A Ford Model-T automobile is in a "has-a" relationship with __________.
Question 6
True/False
According to the inheritance structure defined by the code fragment below, an Airplane is a kind of Jet_Plane. class Jet_Plane : public Airplane { private: int num_engines; Jet_Engine jets[4]; // ... };
Question 7
Multiple Choice
If the execution of any constructor in a derived class does not invoke a base class constructor, C++ automatically invokes the no-parameter constructor for the __________ class.
Question 8
Multiple Choice
In general, it is better to use __________ visibility, because derived classes may be written by different programmers, and it is always a good practice to restrict and control access to the base-class data fields.
Question 9
Short Answer
Member functions generally have __________ visibility, so we should be able to access a member function that is inherited.
Question 10
Short Answer
Having multiple member functions with the same name but different signatures in a class is called member function __________.
Question 11
Multiple Choice
Suppose two Clock class functions named get_military_time use the following headers: Std::string get_military_time (int hours, int minutes) ; Std::string get_military_time (int hours, int minutes, int seconds) ; The get_military__time member function is said to be __________.
Question 12
Multiple Choice
If a member function is declared __________, then when it is called through a pointer (or reference) variable the actual member function will be determined at run time and based on the type of the object pointed to (or referenced) .