Object-oriented programming

From CS 61A Wiki
Revision as of 15:27, 6 July 2014 by Axis (Talk | contribs)


Jump to: navigation, search

Object-oriented programming (OOP) is a method for bundling together information and related behavior.

Motivation

Terminology

Syntax

to override method for the class: A.method = lambda self: "test" to override method for an instance: inst.method = lambda: "test"

Inheritance

Main article: Inheritance