Package football1 :: Module club :: Class Club
[hide private]
[frames] | no frames]

Class Club

object --+
         |
        Club

The class Club represents football clubs in a match statistics system. Only some very basic information for each club is recorded. A club object is immutable once created.

Instance Methods [hide private]
 
__init__(self, name, stadium)
Creates a new club with the given basic information.
string
get_name(self)
Returns the name of the club.
string
get_stadium(self)
Returns the home stadium of the club.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, stadium)
(Constructor)

 

Creates a new club with the given basic information.

Parameters:
  • name (string) - the name of the club
  • stadium (string) - the home stadium of the club
Overrides: object.__init__

get_name(self)

 

Returns the name of the club.

Returns: string
club name

get_stadium(self)

 

Returns the home stadium of the club.

Returns: string
home stadium