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 |
What is dynamic and static typing?
Write a C++ Program to Multiply two Numbers
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
What is the cout in c++?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What is a pointer how and when is it used?
What is the extraction operator and what does it do?
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
Is swift a good first language?
If dog is a friend of boy, is boy a friend of dog?
What is singleton pattern in c++?
Explain RAII (Resource Acquisition Is Initialization).