Edited my last post with some comments, I hope that clarifies it.
Edit: In the example, "Stats" would be the class, where Iginla would be an object.
Methods and functions are pretty much the same thing. Methods are any functions that are listed in the class definition. So in that "Stats" class, all the functions inside: getGoals, setGoals, getAssists, setAssists are all methods that belongs to the Stats class.
Last edited by FlamesPuck12; 05-10-2010 at 04:18 PM.
|