in reply to Re^4: Subroutine and object
in thread Subroutine and object

It depends on the problem. This is really only something you can answer with experience, but one good guideline is that using objects is useful when you have a collection of logically-contained behavior. If you can point at an entity in the solution and say "Here is an individual thing that does several related things", you might have a good candidate for an object.