View Single Post
12-13-2006, 03:08 PM
#8
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Originally Posted by paaaaaaaaaa
Yeah re-useability is what I always hear but isnt that the same case for functions?

Also I hear OOP helps organise your code better but I dont like it when a file has something like 6 long functions in it and you have to struggle scrolling through the file to find something which can be the case with classes.

Isn't having a class effectivly like having a function that will run through some sub functions and then finally return an array.
Classes can do more than just group functions together. You can use them together with less lines of code and also manipulate the vars used within the class/functions.