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.
6.1 Classes
A class is defined using the class keyword, and variables and functions can be grouped together in the body of the definition.
>>> class leux(object):
... def method_1(self):
......
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
Object-oriented programming
Article included in this offer
"Software technologies and System architectures"
(
227 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
- VAN ROSSUM (G.) - Python Tutorial. - Disponible sur Internet : http://docs.python.org/tut/tut.html (2008)
- PILGRIM (M.) - Dive Into Python. -...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!