What is a protocol class?



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

Post New Answer

More C++ General Interview Questions

What is the difference between map and hashmap in c++?

0 Answers  


What is the size of a vector?

0 Answers  


What do you mean by public protected and private in c++?

0 Answers  


Write about c++ storage classes?

0 Answers  


What is a container class? What are the types of container classes in c++?

0 Answers  






What is the c++ programming language used for?

0 Answers  


What is the use of volatile keyword in c++? Give an example.

1 Answers  


What does n mean in c++?

0 Answers  


Can you explain the term "resource acquisition is initialization?"

1 Answers   Amazon,


Difference between class and structure.

0 Answers  


Explain stack & heap objects?

0 Answers  


Why the usage of pointers in C++ is not recommended ?

0 Answers   TCS,


Categories