Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/using_protected.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

28 lines
372 B
OpenEdge ABL

%module using_protected
%inline %{
class Foo {
protected:
int x;
int blah(int xx) { return xx; }
virtual int vmethod(int xx) { return xx; }
virtual ~Foo() {}
};
class FooBar : public Foo {
public:
using Foo::blah;
using Foo::x;
using Foo::vmethod;
};
class FooBaz : public Foo {
protected:
using Foo::blah;
using Foo::x;
using Foo::vmethod;
};
%}