4 Respuestas
+ 2
In Simple Words Let’s Take Example Of A Classroom
A Classroom Consist Of Number Of Student
So All These Student Together Make A Class
And Each Single Student Act As An Object Because Every Student Have Different Characteristics.
So Multiple Object Come Together And Make A Class.
+ 5
Take for example, when you code a game, there many types of objects, for example, enemies, and for each type of object, they all share same behavior (move, attack, etc.), but with different properties (hp, power, etc.) That's when we use Object Oriented Programming, instead of coding the enemies one by one, we create an instance of objects for each enemy.
+ 4
Some explanations about oop from sololearn tutorials:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2467/
https://www.sololearn.com/learn/Python/2468/
https://www.sololearn.com/learn/Python/2473/