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

27. In the derived class definition, you list from the base class Select one: a.

ID: 3680095 • Letter: 2

Question

27.

In the derived class definition, you list from the base class

Select one:

a. all the member functions every time.

b. only those member functions that need to be redefined.

c. only those member functions that were in the public section.

d. only those member functions you want to overload.

28.

If you have a copy constructor in the base class, but do not have a copy constructor for the derived class, then

Select one:

a. you will have a syntax error.

b. a copy constructor for the derived class is automatically created for you.

c. you cannot use pointer variables.

d. the default constructor is used.

29.

Destructors are not inherited into the derived class.

Select one:

True

False

30.

Using inheritance allows us to

Select one:

a. eliminate duplicate code.

b. make our classes more modular.

c. use polymorphism.

d. All of these.

e. None of these.

Explanation / Answer

27. Answer is   option D

28. Answer is opton B.

29. True

30.Answer is option D.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote