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...
The process of sliding or dragging and then dropping a thumbnail in a new location is called _________________________.
Fill in the blank(s) with the appropriate word(s).
The following code fragment is an implementation of the count-controlled traversal of a singly linked list from Section3.4.5. Does it work? If not, explain the problem and how to fix it. (Note: this.length is the number of data nodes in the linked list and assume the visit() method is implemented and works properly.)
```
SLNode
In Word, the ________ feature recognizes typing errors that are commonly made and substitutes the correct word
A) AutoCorrect B) AutoEdit C) Spellcheck D) Track Changes
A(n) ________ character is used to represent one or more unknown characters in a string
Fill in the blank(s) with correct word