Chapter 9: Object-Oriented Programming: The Blackjack Game


Download CD Content

Overview

In the last chapter, you learned about the software object. Almost every program you saw involved a single object. That's a great way to begin to understand how objects work, but the true power of OOP can only be appreciated by seeing a group of objects work together. In this chapter, you'll learn to create multiple objects and define relationships among them so that they can interact. Specifically, you'll learn to do the following:

  • Create objects of different classes in the same program

  • Allow objects to communicate with each other

  • Create more complex objects by combining simpler ones

  • Derive new classes from existing ones

  • Extend the definition of existing classes

  • Override method definitions of existing 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