/trunk/Examples/test-suite/inherit_same_name.i
Swig | 16 lines | 15 code | 1 blank | 0 comment | 0 complexity | a7c7176d3cecf632dee839d00dcb3aee MD5 | raw file
1%module inherit_same_name 2 3%inline %{ 4 struct Base { 5 Base() : MethodOrVariable(0) {} 6 virtual ~Base() {} 7 protected: 8 int MethodOrVariable; 9 }; 10 struct Derived : Base { 11 virtual void MethodOrVariable() { Base::MethodOrVariable = 10; } 12 }; 13 struct Bottom : Derived { 14 void MethodOrVariable() {} 15 }; 16%}