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: private B
{
public:
D(int nn, float dd);
void h();
private:
double d;
};
```
a) f()
b) g()
c) h()
c) h()
The inheritance is private. Although the members are public in the base class, objects of the derived class cannot access these members.
Computer Science & Information Technology
You might also like to view...
VoIP uses the Internet to transmits calls instead of phone lines or cellular towers
Indicate whether the statement is true or false
Computer Science & Information Technology
The file system utilized by flash memory is NTFS because of its increased security over FAT
Indicate whether the statement is true or false.
Computer Science & Information Technology