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
Can I create my own functions in c++?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
Which should be more useful: the protected and public virtuals?
What is setfill c++?
Difference between inline functions and macros?
Differentiate between the message and method in c++?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Comment on assignment operator in c++.
Explain the uses of static class data?
What is constructor and destructor in c++?
What is abstraction in c++ with example?
What is const pointer and const reference?
which of the following is not an secondary constant a) array b) real c) union
What relational operators if statements in c++?