Original Post
Consider the situation:
Is there anyway around this?
class Base
{
public:
virtual ~Base(){}
virtual void Func1() = 0;
};
class Sub : public Base
{
public:
virtual ~Sub() {}
virtual void Func1() { //something }
void Func2() { //something }
};
//Main program
Base* pClass;
pClass = new Sub;
//pClass->Func2(); won''t compile