I'm working on an example and it's using a pure virutal method in one of the classes.
So basically there's two classes, and the third one I'm trying to make a pure virutal method. So I added virtual class 1 function(); to the bottom of my third class, and I made all the members static.
So it mentions I have to override it with subclasses, and provide concrete classes. I am a bit confused with the terminology, am I meant to simply implement a bunch of static functions, and what exactly is concrete classes that inherit from the class I'm making, which are meant to implement the static methods?
class A
{
public:
A();
virtualvoid function() = 0; // pure virutal
};
class B : public A
{
public:
B();
void function(); // pure virtual function must be implemented
};