What is the use of pure virtual functions in c++?
If you want all the derived classes to implement a method, then make it as pure virtual function in your class.
A pure virtual function is same as normal virtual function, other wise there is no use case.
option 1 is wrong, because derived classes need not implement pure virtual function of base class.
Back To Top