Chapter 8: Software Objects: The Critter Caretaker Program


Download CD Content

Overview

Object-oriented programming (OOP) is a different way of thinking about programming. It's a modern methodology that's been embraced by the software industry and is used in the creation of the majority of new, commercial software. The basic building block in OOP is the software object—often just called an object. In this chapter, you'll take your first steps toward understanding OOP as you learn about objects. Specifically, you'll learn to do the following:

  • Create classes to define objects

  • Write methods and create attributes for objects

  • Instantiate objects from classes

  • Restrict access to an object's attributes

  • Work with both new-style and old-style classes




Python Programming for the Absolute Beginner
Python Programming for the Absolute Beginner, 3rd Edition
ISBN: 1435455002
EAN: 2147483647
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net