Object Oriented Programming in Python

Introduction

What is an Object?

Namespaces

Python Classes

Example: Atom class

Atom class

Molecule Class

Using Molecule Class

Inheritance

Overloading parent functions

Adding to parent functions

Public and Private Data

Public and Private Data, Cont.

Encapsulated Atom

Why Encapsulate?

Classes that look like arrays

Classes that look like functions

Other things to overload

Other things to overload, cont.

References