What mistake prevents the following class declaration from functioning properly as an abstract class?
class Shape
{
public:
virtual double print() const;
double area() const { return base * height; }
private:
double base;
double height;
};
a. There are no pure virtual functions.
b. There is a non-virtual function.
c. private variables are being accessed by a public function.
d. Nothing, it functions fine as an abstract class.
a. There are no pure virtual functions.
You might also like to view...
List three uses of Nautilus.
What will be an ideal response?
Kilohertz (KHz) is a measurement for frequency and represents one million cycles per second
Indicate whether the statement is true or false
The ________ Section of a PivotTable contains four quadrants where field names are placed to determine how the report will display
Fill in the blank(s) with correct word
Which of the following choices is NOT a valid value for the background-position attribute?
A) center B) top C) left D) bottom