Pure virtual function with implementation
My basic understanding is that there is no implementation for a pure virtual function, however, I was told there might be implementation for pure virtual function. class A { public: virtual void f() = 0; }; void A::f() { cout<<“Test”<<endl; } Is code above OK? What’s the purpose to make it a pure virtual function … Read more