diff options
Diffstat (limited to 'examples/hierarchy/BoardGame.h')
-rw-r--r-- | examples/hierarchy/BoardGame.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/hierarchy/BoardGame.h b/examples/hierarchy/BoardGame.h new file mode 100644 index 0000000..d1864c5 --- /dev/null +++ b/examples/hierarchy/BoardGame.h @@ -0,0 +1,18 @@ +#ifndef __BOARDGAME_H__ +#define __BOARDGAME_H__ + +/** Example class to show hierarchy testing. + * + * Shamelessly ripped and adapted from + * <a href="http://c2.com/cgi/wiki?ClassHierarchyTestingInCppUnit"> + * ClassHierarchyTestingInCppUnit</a> + * + */ +class BoardGame { + public: + /// expected to return true + virtual bool reset(); + virtual ~BoardGame(); +}; + +#endif |