Solved

What Mistake Prevents the Following Class Declaration from Functioning Properly

Question 12

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

Unlock this answer now
Get Access to more Verified Answers free of charge

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