Multiple Choice
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.
Correct Answer:

Verified
Correct Answer:
Verified
Q17: Dynamic_cast is often used to:<br>A) Perform type
Q18: Abstract classes do not necessarily have:<br>A) A
Q19: The line: virtual double functionX() const =
Q20: Abstract classes:<br>A) Contain at most one pure
Q21: Polymorphism is implemented via:<br>A) Member functions.<br>B) virtual
Q22: Which of the following assignments would be
Q23: The line: virtual double earnings() const =
Q25: The C++ compiler makes objects take up
Q26: To help prevent errors, apply C++11's _
Q27: Concrete classes that inherit virtual functions but