Which functions in class D are virtual?

What will be an ideal response?
```
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.
Explanation:
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...

A person who has learned to craft Internet searches can locate a multitude of interesting material, such as graphics, animations, sounds, and text.

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

Computer Science & Information Technology

?Only two wires are required to complete a telephone circuit.

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

Computer Science & Information Technology