-
What do you mean by pure virtual functions?
A pure virtual member function is a member function that the base class forces derived classes to provide. Normally these member functions have no implementation. Pure virtual functions are equated to zero. class Shape { public: virtual void draw() = 0; };
-
-
-
-
-
-
-
Inheritance
Which one of the following statements regarding C++ class inheritance is FALSE?
a. Inheritance promotes generic design and code reuse.b. Struct cannot be inherited in C++.
c. C++ supports multiple inheritance. d. Inheritance is a mechanism through which a subclass inherits the properties and behavior of its superclass. -
-
-
-
Classes
How many parameters are there in a binary operator implemented as a friend?Choose one answer. a. 2 b. 0 c. 1 d. as many as you need
-
-
-
-
-
-
-
-
C++ Interview Questions
Ans