Open In App

ISRO | ISRO CS 2008 | Question 71

Like Article
Like
Save
Share
Report

We can make a class abstract by
(A) Declaring it abstract using the virtual keyword
(B) Making at least one member function as virtual function
(C) Making at least one member function as pure virtual function
(D) Making all member function const


Answer: (C)

Explanation: An abstract class is a class that is designed to be specifically used as a base class. An abstract class contains at least one pure virtual function. A pure virtual function can be declared by using a pure specifier ( = 0 ) in the declaration of a virtual member function in the class declaration.

Option (C) is correct.

Quiz of this Question


Last Updated : 13 Jun, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads