Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

10. The constructor for a class is inherited. Select one: True False 11. Polymor

ID: 3680092 • Letter: 1

Question

10.

The constructor for a class is inherited.

Select one:

True

False

11.

Polymorphism refers to

Select one:

a. the ability to assign multiple meanings to one function name.

b. overriding base class functions.

c. overloading functions.

d. None of these.

12.

When deriving a class, you should

Select one:

a. list only base class functions that will be redefined.

b. list all the member functions of the base class.

c. make every function a virtual function.

d. overload all the base class member functions.

13.

Given a class A that derives from a class B that derives from a class C, when an object of class A goes out of scope, in which order are the destructors called?

Select one:

a. C, B, then A

b. A, B, then C

c. unable to determine

d. depends on how the code is written for the destructors

14.

If you use the keyword virtual in a function declaration, you must also use it in the function definition.

Select one:

True

False

15.

What is another name for a child class?

Select one:

a. derived class

b. sub class

c. descendent class

d. All of these

e. None of these

16.

A derived class automatically gets all the member variables from the base class.

Select one:

True

False

Explanation / Answer

Answers:

10: False

11: a

12: c

13: c

14: False

15: d

16: True