V

Vikash Gupta • 33.56K Points
Instructor I

Q. Which keyword is used to define a class that cannot be instantiated?

  • (A) abstract
  • (B) virtual
  • (C) private
  • (D) protected
  • Correct Answer - Option(B)
  • Views: 50
  • Filed under category C++

Explanation by: Vikash Gupta
A class with a pure virtual function is considered an abstract class and cannot be instantiated.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics