Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
173 B
3
Indexable
Never
class A
{
    public:
        A() {}
        ~A(){}
};

class B: public A
{
    public:
        B():A(){}
        ~B(){}
};

int main(void)
{
  A* a = new B();
  delete a;
}