Guest User

Untitled

a guest
Dec 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. struct Behavior
  2. {
  3. virtual bool behavesWell() { return true; }
  4.  
  5. private:
  6. bool m_well;
  7. public:
  8. bool behavesMemberWell() { return m_well; }
  9. };
  10.  
  11. struct OtherBehavior : public Behavior
  12. {
  13. virtual bool behavesWell() { return false; }
  14. };
Add Comment
Please, Sign In to add comment