What is a protocol class?
Answer / 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 |
5. Can inline functions have a recursion?
What are shallow and deep copies?
Describe linkages and types of linkages?
What is class invariant in c++?
What is #include cmath?
Why cout is used in c++?
What is const pointer and const reference?
What is flush programming?
Why #include is used?
How new/delete differs from malloc()/free?
When does the c++ compiler create temporary variables?
What is wrapper class in c++?