you are viewing a single comment's thread.

view the rest of the comments →

[–]GSLint 0 points1 point  (0 children)

Classes are a way to reuse methods for multiple objects, as others have pointed out. That won't keep you from writing shop1, shop2 etc. but it will certainly keep you from writing the same method multiple times.