Question: Question 11 pts All member functions in a base class should be listed as virtual functions. True False Flag this Question Question 21 pts The
Question 11 pts
All member functions in a base class should be listed as virtual functions.
| True |
| False |
Flag this Question
Question 21 pts
The derived class may define variables and member functions other than those that are in the base class.
| True |
| False |
Flag this Question
Question 31 pts
A derived class automatically gets all the public and protected member variables from the base class.
| True |
| False |
Flag this Question
Question 41 pts
A base class may have at most _______ child class derived from it.
| any number |
| 2 |
| 12 |
| 1 |
Flag this Question
Question 51 pts
Which is the correct way to tell the compiler that the class being declared (ChildClass) is derived from the base class (BaseClass)?
| class ChildClass:public BaseClass |
| class ChildClass::public BaseClass |
| class ChildClass childOf public BaseClass |
| class ChildClass derived BaseClass |
Flag this Question
Question 61 pts
In the derived class definition, you list from the base class
| only those member functions that need to be redefined |
| only those member functions you want to overload. |
| all the member functions every time |
| only those member functions that were in the public section |
Flag this Question
Question 71 pts
If a base class has public member functions that are not listed by a derived class, then these functions
| are inherited unchanged in the derived class |
| are not available to the derived class |
| do not exist in the derived class |
| are private to the derived class |
Flag this Question
Question 81 pts
When deriving a class, you should
| list only base class functions that will be redefined |
| list all the member functions of the base class |
| overload all the base class member functions |
| make every function a virtual function |
Flag this Question
Question 91 pts
Polymorphism refers to
| overriding base class functions. |
| the ability to assign multiple meanings to one function name. |
| overloading functions |
Flag this Question
Question 101 pts
In order to tell the compiler to wait to decide which version of a function to use, you must precede the function declaration in the base class with the keyword
| friend |
| void |
| virtual |
| operator |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
