What is pure virtual function?
Answer / Jay Govind Singh
A pure virtual function is a function in a class that has no implementation. It serves as a contract for derived classes to implement their versions of the function.n Pure virtual functions are declared using `= 0` after the return type.n Example: `class Shape { public: virtual void draw() = 0; };`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is data type in c++?
what is data abstraction in C++?
what is scupper?
Explain the difference between c++ and java.
When is a template a better solution than a base class?
write the programme that convert a interger to biniry number
What is the average salary of a c++ programmer?
What is the insertion operator and what does it do?
What is a singleton class c++?
What is the difference between a class and a structure in C++?
Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.
0 Answers An-Najah National University,
What do you mean by inheritance in c++?