Generated with
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.
o1.election.Candidate
Represents a candidate in an election results application.
A candidate object is immutable.
Parameters
-
name
-
the candidate’s name
-
party
-
the name (or abbreviation) of the candidate’s party
-
votes
-
the number of votes received by the candidate
Attributes
-
Graph
-
-
Supertypes
-
Members list
Determines if the candidate has more votes than the other, given candidate.
Determines if the candidate has more votes than the other, given candidate.
Attributes
Returns a short textual description of the candidate.
Returns a short textual description of the candidate.
Attributes
-
Definition Classes
-