What is a protocol class?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What will the line of code below print out and why?

423


Explain the extern storage classes in c++.

645


What are guid? Why does com need guids?

670


How do you flush a buffer in c++?

704


Define the process of error-handling in case of constructor failure?

656






Do you know the problem with overriding functions?

663


What is the difference between #import and #include?

671


What is a local reference?

780


How to allocate memory dynamically for a reference?

623


describe private access specifiers?

747


What is the outcome of cout< a) 16 b) 17 c) 16.5

699


Can a list of string be stored within a two dimensional array?

666


What is the copy-and-swap idiom?

719


Should you pass exceptions by value or by reference?

783


In a function declaration what does extern means?

685