Suppose this is embedded in an otherwise correct and complete program. Which version of f() will be called?

Suppose class D is derived from class B, and class B has a public member function whose declaration is virtual void f();. Suppose class D has its version of the function, void f(). Here is a function definition and an invocation.
```
void g( B& b)
{
// other code
b.f();
// other code
};

g( dObject );
```

a) D::f()
b) B::f()
c) This is illegal. You can’t pass a D object argument for a B reference
parameter.

a) D::f()

Computer Science & Information Technology

You might also like to view...

On Facebook, videos must be no more than ________ minutes long

A) 5 B) 10 C) 15 D) 20

Computer Science & Information Technology

Gradient Fill — Dark Green, Accent 1, Reflection is an example of a WordArt style

Indicate whether the statement is true or false

Computer Science & Information Technology