Which of the following is the version of func that is called?
```
class B
{
public:
// other members
void func();
// other members
};
void B::func() { /* body */}
class D: public B
{
public:
// other members
void func();
// other members
};
void D::func() { /* body */}
D dObj;
```
Make the following call using dObj as calling object:
```
dObj.func();
```
a) B::func()
b) D::func()
c) Neither
d) Both
e) This is illegal. The base class func() is inherited in the derived class. For this
reason, it is illegal to have a function defined in a base class and in a derived class
having the same signature.
b) D::func()
You might also like to view...
The ________ divides a document into two windows
Fill in the blank(s) with correct word
SQL statements that are stored in a database can be invoked using an object that implements interface ________.
Callable b. StoredStatement c. CallableStatement d. Connection