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...
A protocol is a set of rules for communication between devices that determine how data is formatted, transmitted, received, and acknowledged
Indicate whether the statement is true or false
A run-in index places as many marked entries and subentries for the indexed item on one line as possible
Indicate whether the statement is true or false
Which form tool displays data in both Form view and Datasheet view at the same time?
A. Multiple Items B. Datasheet C. Split Form D. Standard
Each time you press the ____ key, Outlook creates a new paragraph.
A. TAB B. BACKSPACE C. HOME D. ENTER