+ 1

in c++ why we need virtual function & what is pure virtual function.

17th Mar 2019, 6:18 AM
Suraj
Suraj - avatar
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😁😉
17th Mar 2019, 9:11 AM
Max Andal
Max Andal - avatar
0
thanks
17th Mar 2019, 10:55 AM
Suraj
Suraj - avatar