| 1 | |
| 2 | #include "bar1.h" |
| 3 | |
| 4 | using namespace X; |
| 5 | |
| 6 | class Bar2 : public Bar1 |
| 7 | { |
| 8 | OSDeclareDefaultStructors( Bar2 ) |
| 9 | |
| 10 | public: |
| 11 | virtual int foo() override; |
| 12 | }; |
| 13 | |
| 14 | OSDefineMetaClassAndStructors( Bar2, Bar1 ) |
| 15 | |
| 16 | int Bar2::foo() { |
| 17 | return 1; |
| 18 | } |