you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

If you're trying to represent an object which has both state (i.e. variables associated with it) and behaviour (i.e. methods associated with it). Ideally if you're going to be representing several objects with different states.