Python

308
4434 reads

March 1, 2013

Games


Creating your own modules provides important benefits.First, by creating your own modules, you can reuse code, which can save you time and effort.Second, by breaking up a program into logical modules

332
2489 reads

March 1, 2013

Playing_cards3


This program derives two new classes of playing cards from the Card class.The first new class defines cards that can't be printed.

63
1296 reads

March 1, 2013

Playing_cards2


This program is based on the Cards game program. The new version introduces the Deck class to describe a deck of playing cards. A deck can do anything that a hand can. It's a collection of cards.

245
2909 reads

March 1, 2013

Playing_cards


The Cards program uses objects to represent individual playing cards that you might use in a game.The program goes on to represent a hand of cards through an object that is a collection of card object

35
1487 reads

March 1, 2013

Simple Critter


The following example demonstrates a basic class and object .

31
1334 reads

March 1, 2013

Private Critter


The following example demonstrates private variables and methods .

28
1259 reads

March 1, 2013

Constructor Critter


The following example demonstrates constructors .

30
1267 reads

March 1, 2013

Classy Critter


The following example demonstrates class attributes and static methods.

24
1354 reads

March 1, 2013

Attribute Critter


The following example demonstrates creating and accessing object attributes.

29
1357 reads

February 28, 2013

Word Jumble


Demonstrates a word jumble game.