ISRO | ISRO CS 2008 | Question 71
We can make a class abstract by
Declaring it abstract using the virtual keyword
Making at least one member function as virtual function
Making at least one member function as pure virtual function
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
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!
Share your thoughts in the comments
Please Login to comment...