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

addTogether();

By looking at the previous statement, you can tell that addTogether() ______. A. definitely returns a value B. may not return a value C. takes arguments D. does not take arguments E. It is not possible to tell whether or not it returns a value. F. It is not possible to tell whether or not it takes arguments.

Computer Science & Information Technology

You have a file in your home directory called tryit&. Rename this file. What command did you use?

What will be an ideal response?

Computer Science & Information Technology

The __________ method returns a raised to the power of b.

a. Math.power(a, b) b. Math.exponent(a, b) c. Math.pow(a, b) d. Math.pow(b, a)

Computer Science & Information Technology

Social journalism or citizen journalism  ?________.

A. ?is accurate most of the time B. ?may not be as reliable as mainstream media sources C. ?is where everyone gets their news feeds D. ?is a good source for mostly facts

Computer Science & Information Technology