All pastes #276895 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-12-12 19:52 UTC
rendered paste body
#include <stdio.h>

class Base {
  public:
    Base() {
        method();
    }
    virtual void method(void) = 0;
};

class Derived : public Base {
  public:
    Derived() { }
    void method(void) {
        printf("derived\n");
    }
};

int main() {
    Derived d();
    return 0;
}