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.

Computer Science & Information Technology

You might also like to view...

List three uses of Nautilus.

What will be an ideal response?

Computer Science & Information Technology

Kilohertz (KHz) is a measurement for frequency and represents one million cycles per second

Indicate whether the statement is true or false

Computer Science & Information Technology

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

Computer Science & Information Technology

Which of the following choices is NOT a valid value for the background-position attribute?

A) center B) top C) left D) bottom

Computer Science & Information Technology