In this series, we’ll explore Object Oriented Programming.
Everything is an object in Python.
Sometimes the terms objects and classes are mixed, but they are different concepts.
Object
An object can contain variables and/or methods that interact with those variables.
Sometimes objects are named after real world objects.
In a RC car program, you may find:
Sometimes objects are named after real world objects.
In a RC car program, you may find:
The first line creates the object. The second line calls the method turnOn(). That method may modify the objects variables.
0 Comments
If you have any doubts,please let me know