Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Behavior
- {
- virtual bool behavesWell() { return true; }
- private:
- bool m_well;
- public:
- bool behavesMemberWell() { return m_well; }
- };
- struct OtherBehavior : public Behavior
- {
- virtual bool behavesWell() { return false; }
- };
Add Comment
Please, Sign In to add comment