+ 2
what is the difference between a function and a class?
when would you use one and or not the other? I'm confused.
1 Answer
+ 2
these two are totally different things, classes are like new data types you define yourself, they have instance variables and functions that are called methods, so you see a function can be part of a class, but you can only call these functions on objects/instances of the class