Answer:
I will use JAVA to answer the question.
The class ContestResult could be:
public class ContestResult {
String winner;
String secondPlace;
String thirdPlace;
public void setWinner(String e){ //set position of winner.
this.winner = e;
}
public String getWinner(){ //get position winner
return this.winner;
}
public void setSecondPlace(String e){ //set position of second place.
this.secondPlace = e;
}
public String getSecondPlace(){ //get second place
return this.secondPlace;
}
public void setThirdPosition(String e){ //set position of third place.
this.thirdPlace = e;
}
public String getThirdPlace(){ //get third place
return this.thirdPosition;
}
}