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()

All of the above.

These are all pubic members, publicly inherited. Hence, these are all accessible.

Computer Science & Information Technology

You might also like to view...

Word does not enable you to include a personal picture as a bullet

Indicate whether the statement is true or false

Computer Science & Information Technology

Which standard command can be used to find more information about using other commands?

A) manual B. man C. guide D. help

Computer Science & Information Technology