InterviewSolution
| 1. |
What Do You Mean By Pure Virtual Functions In C++? Give An Example? |
|
Answer» Pure VIRTUAL function is a function which doesn't have an implementation and the same NEEDS to be implemented by the the NEXT immediate non-abstract class. (A class will BECOME an abstract class if there is at-least a single pure virtual function and thus pure virtual functions are used to create interfaces in c++). Pure virtual function is a function which doesn't have an implementation and the same needs to be implemented by the the next immediate non-abstract class. (A class will become an abstract class if there is at-least a single pure virtual function and thus pure virtual functions are used to create interfaces in c++). |
|