Class Candidate

java.lang.Object
  extended by Candidate

public class Candidate
extends java.lang.Object

Represents a candidate on a ballot.

Author:
Dave Price

Constructor Summary
Candidate(java.lang.String name, java.lang.String party)
          Candidate constructor.
 
Method Summary
 java.lang.String ballotString()
          Gets a string representing the candidate, for display in the GUI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Candidate

public Candidate(java.lang.String name,
                 java.lang.String party)
Candidate constructor.

Parameters:
name - The candidate's name.
party - The candidate's party.
Method Detail

ballotString

public java.lang.String ballotString()
Gets a string representing the candidate, for display in the GUI.

Returns:
The string