+ 2
What i think class can do
This is my guess and question on class. I could be horribly wrong about it as im still confused. Can i use class to make, lets say a monster which i then store variables like its health and damage and function to die if its health is 0
3 Antworten
+ 4
You're spot on. The variables are called attributes, and the functions are called methods.
+ 3
The class is the blueprint of the definition of a monster. What it is and can do. An object is a specific monster.