Thread: OO and U
View Single Post
Old 05-10-2010, 04:16 PM   #5
FlamesPuck12
First Line Centre
 
Join Date: Apr 2007
Exp:
Default

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.
FlamesPuck12 is offline   Reply With Quote
The Following User Says Thank You to FlamesPuck12 For This Useful Post: