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

Explain deep copy?

0 Answers  


What is the difference between "overloading" and "overridding"?

3 Answers  


What is the best c++ book?

0 Answers  


What do you mean by pure virtual functions in C++? Give an example?

1 Answers  


What is iomanip c++?

0 Answers  






write a program that takes two numbers from user that prints the smallest number

2 Answers  


How is new() different from malloc()?

0 Answers  


Does defining a function inline mean that it wont push and pop things on/off the stack ...like parameters and the return the address??

2 Answers  


What is the Maximum Size that an Array can hold?

55 Answers   Adobe, FutureSoft, HCL, Infosys, Satyam, TCS, Wipro,


What is a multimap c++?

0 Answers  


Explain how to initialize a const member data.

0 Answers  


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

0 Answers   Nucleus, TCS,


Categories