summaryrefslogtreecommitdiff
path: root/trunk/Examples/python/import/base.h
blob: 5a266f68c96887036adfd68c0f6dacce64df1e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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);
     }
};