Which of the following functions can be invoked by an object of class D?
Consider the class inheritance.
```
class B
{
public:
B();
B(int nn);
void f();
void g();
private:
int n;
};
class D: public B
{
public:
D(int nn, float dd);
void h();
private:
double d;
};
```
a) f()
b) g()
c) h()
a) f()
b) g()
c) h()
Computer Science & Information Technology
You might also like to view...
A DHCPINFORM request sent by a client will receive what message number from a DHCP server as an acknowledgment?
A. 5 B. 6 C. 7 D. 8
Computer Science & Information Technology
When using inheritance, the subclass can use the procedures within the base class as well as its variables.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology