Solved

What Mistake Prevents the Following Class Declaration from Functioning Properly

Question 3

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:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents