0
what is the different between class and function?
2 Answers
+ 2
class is the object
an function is an method
+ 2
class is an entire blueprint of an object and method is a part and an action in the class
Example:
class named Human
and you create what humans do as methods inside the class
methods (AKA functions) of human class: eat, drink, sleep ...