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 #include iomanip?

0 Answers  


What return value must conversion operators have in their declaration?

0 Answers  


Explain what you mean by a pointer.

0 Answers   TCS,


Explain queue. How it can be implemented?

0 Answers  


What is function overloading c++?

0 Answers  






Write a program to interchange 2 variables without using the third one.

0 Answers  


write the programme that convert a interger to biniry number

1 Answers   Amazon,


Can I learn c++ without learning c?

0 Answers  


What are the classes in c++?

0 Answers  


What is the use of pointer in c++ with example?

0 Answers  


What is the two main roles of operating system?

0 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

0 Answers  


Categories