What is the answer of the question?
Q6 What makes a class abstract?
A) The class must not have method definitions.
B) The class must have a constructor that takes no arguments.
C) The class must have a function definition equal to zero.
D) The class which cannot be instantiated as they are mainly for
inheritance.
Please explain the reason also.
Concept on OOPs MCQ
hello @Sakshi2004
if a class has atleast one pure virtual function then we call such class as absract function.
pure virtual function => a function with no definition.
so why c is not the answer?
c and d should be correct.
a) we cannot create instance of abstract class.
b) it has pure virtual function so atleast one function definition is 0
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.