Not really. You just need:
class Base
{
virtual int getSpecialNum();
};
class A : public Base
{
int getSpecialNum(){return 0;}
};
class B: public Base
{
int getSpecialNum(){return 1;}
}
although it has been a while since I've had to do this.

Find content
Not Telling