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 pointer definition and an access
to a member function..

```
B* bPtr = new D;
BPtr->f();
```

a) D::f()
b) B::f()
c) This is illegal. You can’t assign a D object to a variable of type pointer to B.

a) D::f()

Computer Science & Information Technology

You might also like to view...

Spelling errors in Word are denoted by a green underline

Indicate whether the statement is true or false

Computer Science & Information Technology

The _______ pseudo-class configures the styles that will apply for a hyperlink that has not been visited by the user

a. :unvisited b. :link c. :visited d. :new

Computer Science & Information Technology