Answer Posted / harendra pal
An abstract class is a protocol class if:
it neither contains nor inherits from classes that contain member data, non-virtual functions, or private (or protected) members of any kind.
it has a non-inline virtual destructor defined with an empty implementation,
all member functions other than the destructor including inherited functions, are declared pure virtual functions and left undefined.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain unexpected() function?
Can I learn c++ as my first language?
What is a map in c++?
What are mutator methods in c++?
Ask to write virtual base class code?
Why do we need runtime polymorphism in c++?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
What are maps in c++?
What is a multimap c++?
In a function declaration, what does extern mean?
why is c++ called oops? Explain
How do c++ struct differs from the c++ class?
What are dynamic type checking?
What is a memory leak c++?
Does c++ have a hash table?