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 |
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
how to swap two strings without using any third variable ?
What are the types of pointer?
What is the difference between mutex and binary semaphore?
What is the arrow operator in c++?
Define a nested class.
Define upcasting.
What about Virtual Destructor?
What is c++ coding?
What is an inline function in c++?
What is a namespace in c++?
What is the difference between inline functions and macros?