Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Cpp Programming Quiz 128 – How can we make a class abstract?

Question: 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.

Answer: Option B