Possible Duplicate:
Pure virtual destructor in C++
class A{
public:
virtual ~A()=0;
};
class B:public A{
int *i;
public:
~B() {delete i;}
};
int main(){
B* temp = new B;
}
I'm just trying to have B be an implementation of A. For some reason I cannot do this.