git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
31 lines
392 B
C++
31 lines
392 B
C++
/* File : example.h */
|
|
|
|
#include <iostream>
|
|
|
|
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;
|
|
}
|
|
};
|