Which functions in class D are virtual?

```
class B
{
public:
virtual void f();
virtual void g();
// . . .
private:
//. . .
};
class D : public B
{
public:
void f();
void g(int);
private:
// . . .
};
```

The function void f(); is virtual, the function void g(int); is not.

The function void f(); has the same signature in D as in B. The function void g(int); in D has a different signature than void g(); in B. Consequently, D::g is an overloaded function, but is not a virtual function.

Computer Science & Information Technology

You might also like to view...

The Header & Footer button is found in the ________ group on the Insert tab

Fill in the blank(s) with correct word

Computer Science & Information Technology

______________________________ in the selection of technology products are measurable and do not rely on an evaluator's personal biases.

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

Computer Science & Information Technology