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()

Computer Science & Information Technology

You might also like to view...

___________ is the act of controlling what one is allowed to do in one's private life.

A. Appropriation B. Breach of confidentiality C. Increased accessibility D. Decisional interference

Computer Science & Information Technology

Worksheet data can be consolidated by position or by category

Indicate whether the statement is true or false.

Computer Science & Information Technology

The U.S. legal system is based on common law, also known as case law and English law. Case decisions create a precedent and are therefore binding on future decisions in that jurisdiction. The exception to this is ________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You can delete a table row using the Resize Table button in the Arrange group of the Table Tools Design tab. ____________________?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology