/trunk/Examples/test-suite/inherit_same_name.i
# · Swig · 16 lines · 15 code · 1 blank · 0 comment · 0 complexity · a7c7176d3cecf632dee839d00dcb3aee MD5 · raw file
- %module inherit_same_name
- %inline %{
- struct Base {
- Base() : MethodOrVariable(0) {}
- virtual ~Base() {}
- protected:
- int MethodOrVariable;
- };
- struct Derived : Base {
- virtual void MethodOrVariable() { Base::MethodOrVariable = 10; }
- };
- struct Bottom : Derived {
- void MethodOrVariable() {}
- };
- %}