Question: what does the following mean? class A: private B Select one: a. class A will inherit all the non-private members from B without changing their

what does the following mean? class A: private B Select one:

a. class A will inherit all the non-private members from B without changing their access method.

b. class B will inherit all the private members from A and make them private access.

c. class A will inherit all the non-private members from B and make them private access.

d. class B will inherit all the private members from A without changining their access method.

==============

Suppose class A inherits from base class B. What is the order in which their constructors and destructors will be called when an object of class A is instantiated and then destroyed?

Select one:

a.B constructor, A constructor, A destructor, B destructor.

b.A constructor, B constructor, A destructor, B destructor

c.A constructor, B constructor, B destructor, A destructor

d.B constructor, A constructor, B destructor, A destruct

====================

When an object of a derived class is instantiated, the __________ constructor initializes the _________ members.

Select one:

a.Base class, derived class

b.Derived class, base class

c.Derived class, public

d.Base class, base class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!