Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

What is a protocol class?

  Shared By: Adah Miller    Date: Jan 25    Category: C++ Programming    Views: 541

Answer:

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.

Share: 
 

Didn't find what you were looking for? Find more on What is a protocol class? Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: