— This is the first point in why we use virtual functions..
— How can I add graphics.h to dev-c++
— Bcz pf dynamic binding.... if you declare virtual function in base class.... it will overridable....
Simply declare the members function in the derived class and define a new implimentation for that member function
— Ok thanks 😁👍
— Got the point or not? Still confused
— Bcz your pointer defines only base class function if you declare in base clas... so in base class use virtual function... so that it will override.... then... you can use easily base class pointers in different class also...