o1.election
Members list
Type members
Classlikes
Represents a candidate in an election results application.
The class District
represents electoral districts (Finnish: vaalipiiri). Each district has a certain number of seats for which a (larger) number of candidates compete in an election. Each district has its own candidates.
The class District
represents electoral districts (Finnish: vaalipiiri). Each district has a certain number of seats for which a (larger) number of candidates compete in an election. Each district has its own candidates.
A district object is immutable.
Parameters
- candidates
-
the candidates vying for the seats in the district; there is always at least one candidate per district
- name
-
the name of the electoral district
- seats
-
the number of seats (elected positions) available
Attributes
- Supertypes
Value members
Concrete methods
A small program that uses the classes in this package. May be customized by the student.
A small program that uses the classes in this package. May be customized by the student.