Answer the following questions 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.
1. True
Explanation: An abstract class is such a class. These are useful to prevent the implementation of incomplete class definitions and to force the implementation of pure virtual function members in the derived class.
2. True
Explanation: There is no restriction on having all non-constructor members be pure virtual member functions. You can even have pure virtual destructors.
You might also like to view...
________ carries signals on fiber-optic cable and is the fastest type of broadband, with top speeds of 300 to 500 Mbps
Fill in the blank(s) with correct word
The ________ button center aligns text within a placeholder
A) Align Left B) Justify C) Center D) Align Right