Files
cpp-thirdparty/winx64/bin/swigwin-4.0.0/Examples/test-suite/inherit_same_name.i
2019-08-04 21:38:19 -05:00

17 lines
324 B
OpenEdge ABL

%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() {}
};
%}