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.
You might also like to view...
A network with a CIDR notation of /26 would have what subnet mask?
a. 255.255.255.0 b. 255.255.255.192 c. 255.255.255.224 d. 255.255.255.240
List the characteristics of effective design patterns.
What will be an ideal response?
A(n) ______ ad is a rectangular webpage advertisement that links to the advertiser's website.
A. banner B. vertical C. pop-up D. hero
____ is used for encrypting confidential data such as credit card numbers.
A. SLS B. LSS C. SSL D. LLS