Programming Python

Overview

Objects are…

What is OOP all about?

The OOP programming paradigm

The OOP paradigm

OOP is programming with classes

OOP is really nothing new

How do you do OOP in Python

Using existing classes -- built-in types

Built in types

Defining new classes

Creating classes and objects

Using classes

About ‘self’

Assigning values to instance attributes

Attribute lookup

Creating instances -- constructors

Special methods I -- Representation

Special methods  II – arithmetic methods

Special methods III  -- Sequences

Inheritance

Inheritance II  - modifying behaviour

Name lookup with inheritance

Inheritance

ISA relationships

Some OOP concepts

Polymorphism

Polymorphism

Delegation