+ 1
Hello guys please am having a difficult time understanding classes and objects and methods please help me out đđ
Currently learning python
3 Answers
+ 3
Class is essentially a structure which is used for declaring an objects which are similar to each another. For instance
Class: Tree
Object: Oak
Object: Ash
Object: Larch
Instead of creating bunch of variables for each kind of tree, we can use a class which defines what tree is, and then create an instance of that class, called an object. they will share the same variables but each object will have its own values. It is useful in games development and/when you have to process complex sets of data.
+ 1
What did you not unterstand? To specifying your question :)
0
The concept of classes and objects