Objects and Classes

Q1: How can we make a class abstract?

A By making all member functions constant.

B By making at least one member function as pure virtual function.

C By declaring it abstract using the static keyword.

D By declaring it abstract using the virtual keyword.

ANS:B - By making at least one member function as pure virtual function.

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.