How do we declare an abstract class?
A. By providing at least one pure virtual method (function signature followed by ==0;) in a class
B. By declaring at least one method abstract using the keyword ‘abstract’ in a class
C. By declaring the class abstract with the keyword ‘abstract’
D. It is not possible to create abstract classes in C++
Ans: A
B. By declaring at least one method abstract using the keyword ‘abstract’ in a class
C. By declaring the class abstract with the keyword ‘abstract’
D. It is not possible to create abstract classes in C++
Ans: A
Post a Comment