AlleyOOP Some Object Oriented Programming Concepts

Python is a language that supports object-oriented programming (OOP for short). In OOP parlance, objects are bundles of data and actions (methods) that operate on the data. OOP programs are built around such bundles.

TECHNICAL In contrast, languages such as C focus on procedural programming, STUFF and the Scheme/Haskell languages focus on functional programming. Python is a balanced language with good support for both procedural and OOP styles and some support for functional programming.

Objects and functions aren't mutually exclusive—in Python, methods are just functions attached to objects. But considering a program in terms of data/action bundles is a different approach than creating data objects and then using separate actions on them.

We don't describe object-oriented programming in detail in this book, but the following concepts are important for understanding Python classes.

Was this article helpful?

0 0

Post a comment