0
What is the difference between class and a function?
2 Réponses
+ 7
A class may contain several methods, or functions, that all act to help build an object. A function completes a set of actions.
Think of functions as your tools, then a class would be a toolbag all for a specific type of job.
0
think of class as a recipe or blue print for building something
while function is a block of command that does something