Object-oriented programming

From XPUB & Lens-Based wiki
Revision as of 10:11, 24 March 2009 by Michael Murtaugh (talk | contribs) (→‎Resources)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Object-oriented programming is an approach to programming. Many different styles and depths of "OOP" exist, and many languages, including Python support OOP features. In a nutshell, the core features of OOP are:

  • Bundling or "encapsulation" of data structures and related functions
  • Inheritance, or a sharing of code & data through hierarchies of "classes"
  • Poly-morphism, or roughly said: the ability for different kinds of objects to respond uniquely to the same message, without the caller of that message needing to know about the differences.

Resources