Object-oriented programming
The Python language
Article REF: H3110 V3
Object-oriented programming
The Python language

Author : Tarek ZIADÉ

Publication date: February 10, 2009, Review date: April 27, 2016 | Lire en français

Logo Techniques de l'Ingenieur You do not have access to this resource.
Request your free trial access! Free trial

Already subscribed?

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.

Example:

>>> class leux(object):

...             def method_1(self):

......

You do not have access to this resource.
Logo Techniques de l'Ingenieur

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?


Ongoing reading
Object-oriented programming

Article included in this offer

"Software technologies and System architectures"

( 227 articles )

Complete knowledge base

Updated and enriched with articles validated by our scientific committees

Services

A set of exclusive tools to complement the resources

View offer details