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!
You do not have access to this resource.
Click here to request your free trial access!
Already subscribed? Log in!
The Ultimate Scientific and Technical Reference
This article is included in
Software technologies and System architectures
This offer includes:
Knowledge Base
Updated and enriched with articles validated by our scientific committees
Services
A set of exclusive tools to complement the resources
Practical Path
Operational and didactic, to guarantee the acquisition of transversal skills
Doc & Quiz
Interactive articles with quizzes, for constructive reading
Object-oriented programming
Bibliography
- VAN ROSSUM (G.) - Python Tutorial. - Disponible sur Internet : http://docs.python.org/tut/tut.html (2008)
- PILGRIM (M.) - Dive Into Python. -...
Also in our database
Standards and norms
WSGI 2003 Python Web Server Gateway Interface v1.0. On the Internet : http://www.python.org/dev/peps/pep-0333/
ISO/IEC 8859-15 1999 Information technology - Single-byte coded graphic character sets. Part 15: Latin alphabet No. 9.
Manufacturer – Supplier – Distributor
Sun Microsystems http://www.sun.com/download/index.jsp
Websites
Directory of modules supplied with Python http://docs.python.org/modindex.html
Help on the mailing list http://mail.python.org/mailman/listinfo/python-list
Exclusive to subscribers. 97% yet to be discovered!
You do not have access to this resource.
Click here to request your free trial access!
Already subscribed? Log in!
The Ultimate Scientific and Technical Reference