Q. How do we declare an abstract class? (Solved)

1. by providing at least one pure virtual method (function signature followed by ==0;) in a class

2. by declaring at least one method abstract using the keyword ‘abstract’ in a class

3. by declaring the class abstract with the keyword ‘abstract’

4. it is not possible to create abstract classes in c++

  • a. by providing at least one pure virtual method (function signature followed by ==0;) in a class
Subscribe Now

Get All Updates & News