blob: 5a266f68c96887036adfd68c0f6dacce64df1e91 [file] [log] [blame]
#include <stdio.h>
class Base {
public:
Base() { };
virtual ~Base() { };
virtual void A() {
printf("I'm Base::A\n");
}
void B() {
printf("I'm Base::B\n");
}
virtual Base *toBase() {
return static_cast<Base *>(this);
}
};