git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6577 626c5289-ae23-0410-ae9c-e8d60b6d4f22
32 lines
365 B
C++
32 lines
365 B
C++
/* File : example.h */
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
class Bar
|
|
{
|
|
public:
|
|
virtual void bar ()
|
|
{
|
|
cout << "bar" << endl;
|
|
}
|
|
};
|
|
|
|
class Foo
|
|
{
|
|
public:
|
|
virtual void foo ()
|
|
{
|
|
cout << "foo" << endl;
|
|
}
|
|
};
|
|
|
|
class Foo_Bar : public Foo, public Bar
|
|
{
|
|
public:
|
|
virtual void fooBar ()
|
|
{
|
|
cout << "foobar" << endl;
|
|
}
|
|
};
|