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

should use first to solve a problem?

Replies are listed 'Best First'.
Re^5: Subroutine and object
by chromatic (Archbishop) on Nov 25, 2007 at 00:46 UTC

    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.