From 2824b0cbb66e715490e1ef13250bd675d87b32d9 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 2 Jun 2010 20:53:17 +0000 Subject: rel-2.0.0 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/tags/rel-2.0.0@12089 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- .../Examples/perl5/multiple_inheritance/example.h | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 trunk/Examples/perl5/multiple_inheritance/example.h (limited to 'trunk/Examples/perl5/multiple_inheritance/example.h') diff --git a/trunk/Examples/perl5/multiple_inheritance/example.h b/trunk/Examples/perl5/multiple_inheritance/example.h new file mode 100644 index 000000000..a8f544898 --- /dev/null +++ b/trunk/Examples/perl5/multiple_inheritance/example.h @@ -0,0 +1,31 @@ +/* File : example.h */ + +#include + +using namespace std; + +class Bar +{ + public: + virtual void bar () { + cout << "bar" << endl; + } + virtual ~Bar() {} +}; + +class Foo +{ + public: + virtual void foo () { + cout << "foo" << endl; + } + virtual ~Foo() {} +}; + +class Foo_Bar : public Foo, public Bar +{ + public: + virtual void fooBar () { + cout << "foobar" << endl; + } +}; -- cgit v1.2.1