Question: Question 6 Suppose that a C + D dass D is derived from a base class B . Class B has a public member functian

Question 6
Suppose that aC+D dass D is derived from a base class B. Class B has a public member functian Funcl that is dedared to be virtual, and class D reimplements Funci, At execution time, suppose that aD object is passed to the following function:
vaid Dosomething 8]
I
x.Func();
?
Within the DoSomething function whuse version of Funco is called?
D'sversion
Both B'S version and DSversion
version
Neither as wersion nor D E versian
 Question 6 Suppose that aC+D dass D is derived from a

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!