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...

____________ place the results of processing a stream pipeline into a collection such as a List, Set or Map.

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

Computer Science & Information Technology

COGNITIVE ASSESSMENT Your new home has a vacuum system. What kind of computer is controlling it?

A. virtual computer B. embedded computer C. appliance computer D. integrated computer

Computer Science & Information Technology

You can use the ____________________ tab to refine your search by specifying a name or phone number, for example.

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

Computer Science & Information Technology

Before installing a wireless network, which of the following should Karen, a network technician, take into consideration to reduce signal exposure for war drivers?

A) Encryption protocols B) User authentication C) Device placement D) MAC address filtering

Computer Science & Information Technology