What is the difference between virtual functions and pure virtual functions?
A virtual function is a member function of base class which can be redefined by derived class. A pure virtual function is a member function of base class whose only declaration is provided in base class and should be defined in derived class otherwise derived class also becomes abstract.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use THIS Pointer in static function – Reason in C++?
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
If class D is derived from a base class B
Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?
How will you print a list of all unique words from a string which may contain repeated words?
What are issues if we mix new and free in C++?
What do you know about Volatile keyword in C++? Explain with an example code.
C++ Public access specifier instead of Private – What is bad ?
What is Coupling?
How to reverse a string in C++
What is an algorithm (in terms of the STL/C++ standard library)?
Write a C++ Program to find Square Root of a number using sqrt() function.