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
Q1: The _ operator returns a reference to
Q2: Employee is a base class and HourlyWorker
Q7: Which of the following is not allowed?<br>A)
Q11: Downcasting enables:<br>A) A derived-class object to be
Q14: An abstract class will:<br>A) Have all zeros
Q16: Virtual destructors must be used when:<br>A) The
Q17: Dynamic_cast is often used to:<br>A) Perform type
Q18: The line:<br>Virtual double earnings) const = 0;<br>Appears
Q18: Abstract classes do not necessarily have:<br>A) A
Q27: Concrete classes that inherit virtual functions but