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

A.The copy constructor from the base class is not inherited into the derived cla

ID: 3680087 • Letter: A

Question

A.The copy constructor from the base class is not inherited into the derived class.

Select one:

True

False

B.

The derived class may define variables and member functions other than those that are in the base class.

Select one:

True

False

c

If the member variables in a base class are private, then

Select one:

a. they can be directly accessed or changed in the derived class.

b. the derived class must use any accessor or modifier functions from the base class.

c. making them private causes a syntax error.

d. you must declare them in the derived class also.

Select one:

a. vPet=vDog; cout << vDog.name;

b. vPet=vDog; cout << vDog.breed;

c. vPet=vDog; cout << vPet.name;

d. vPet=vDog; cout << vPet.breed;

E.

If a base class has a public member function, and the derived class has a member function with the same name, but with a different parameter list, this function is said to be

Select one:

a. overloaded.

b. redefined.

c. overwritten.

d. a syntax error.

F.

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

Select one:

a. operator.

b. friend.

c. virtual.

d. void.

G.

If a base class has public member functions that are not listed by a derived class, then these functions

Select one:

a. are not available to the derived class.

b. are inherited unchanged in the derived class.

c. are private to the derived class.

d. do not exist in the derived class.

Explanation / Answer

E)
overloaded

F)
Virtual

C)
the derived class must use any accessor or modifier functions from the base class.

D)
vPet=vDog; cout << vPet.breed;

G)
are inherited unchanged in the derived class

A)
True(not sure with this one)

B)
False

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