Answer the following statements true (T) or false (F)
1) It is useful to define a class for which no objects may be defined.
2) It is legal to have all member functions of a class be pure virtual functions.
3) A derived class destructor always invokes the base class destructor.
4) The base class destructor must be virtual.
5) This is legal code.
```
class B
{
public:
// . . .
virtual void f() = 0;
};
int main() { B b1, b2; /*. . .*/ }
```
1) T
2) T
3) T
4) F
5) F
You might also like to view...
Which of the following statements is true?
a. Each object (instance) of the class shares the class’s instance variables. b. Most instance-variable declarations are preceded with the keyword public, which is an access modifier. c. Variables or methods declared with access modifier private are accessible only to methods of the class in which they’re declared. d. None of the above is true.
The method raises a number to an exponent.
a) Math.Exp b) Math.Exponent c) Math.Power d) Math.Pow
To view a workbook on the Internet, it should be saved as a(n) ________ file
A) HTML B) XML C) C++ D) WWW
Briefly explain the power of the TCP/IP model in its ability to describe what happens at each layer to the data that goes form one computer to another.
What will be an ideal response?