diff options
Diffstat (limited to 'Examples/go/director/director.h')
-rw-r--r-- | Examples/go/director/director.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Examples/go/director/director.h b/Examples/go/director/director.h new file mode 100644 index 000000000..339a9adcd --- /dev/null +++ b/Examples/go/director/director.h @@ -0,0 +1,41 @@ +#ifndef DIRECTOR_H +#define DIRECTOR_H + + +#include <stdio.h> +#include <string> + + +class FooBarAbstract +{ +public: + FooBarAbstract() {}; + virtual ~FooBarAbstract() {}; + + std::string FooBar() { + return this->Foo() + ", " + this->Bar(); + }; + +protected: + virtual std::string Foo() { + return "Foo"; + }; + + virtual std::string Bar() = 0; +}; + + +class FooBarCpp : public FooBarAbstract +{ +protected: + virtual std::string Foo() { + return "C++ " + FooBarAbstract::Foo(); + } + + virtual std::string Bar() { + return "C++ Bar"; + } +}; + + +#endif |