That's a big question, its usually a first year software engineering degree assignment. Its the question of object orientated programming vs procedural programming.
The main thing with having classes is about encapsulating functionality into objects which can be tested, reused and extended as a component in its own right.
The main thing with having classes is about encapsulating functionality into objects which can be tested, reused and extended as a component in its own right.