+ 1
in c++ why we need virtual function & what is pure virtual function.
2 odpowiedzi
+ 5
A pure virtual function in C++ means that we have declared a virtual function in some class but not haveimplemented the function body. In that case, this class is called abstract class, and an abstract class can not be instantiated. ... However, you can declare a pointer or reference of it.
//i think you got me😁😉
0
thanks