6. Object-oriented programming
Python is a fully-fledged object-oriented language, even if it is careful not to impose Object-Oriented Programming (OOP) as Java does: you don't need to master this aspect to create perfectly accomplished Python scripts based on functional programming.
A class is defined using the class keyword, and variables and functions can be grouped together in the body of the definition.
Example:
>>> class leux(object):
...
def method_1(self):
......
You do not have access to this resource.
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed?
Log in!
Ongoing reading
Object-oriented programming