How to create in C++ an abstract class with some abstract methods that I want to override in a subclass? How should the .h file look? Is there a .cpp
.h
.cpp
In C++ you use the keyword virtual on your routines, and assign =0; into them. Like so:
=0;
class GameObject { public: virtual void update()=0; virtual void paint(Graphics g)=0; }
Having a virtual method with a 0 assigned into it automagically makes your class abstract.
0