
public class QuizShow {
	//constant definitions
	final int NUMCONS = 50;					//maximum number of contestants
	
	private String showTitle;				//show title
	private Name hostName;					//host name
	private Contestant[] contestant;		//contestant database
	private int numContestants;				//number of contestants
	
	//No-Arg Constructor
	public QuizShow() {
		showTitle = "";
		hostName = new Name();
		contestant = new Contestant[NUMCONS];
		numContestants = 0;
	}

	//Parametized Constructor
	public QuizShow(String title, Name host) {
		showTitle = title;
		hostName = host;
		contestant = new Contestant[NUMCONS];
		numContestants = 0;
	}
	
	//setters
	public void setShowTitle(String title) {
		showTitle = title;
	}
	
	public void setHostName(Name host) {
		hostName = host;
	}

	//method addContestant
	public void addContestant(Contestant newContestant) {
		contestant[numContestants] = newContestant;
		numContestants++;
	}
	
	//getters
	public String getShowTitle() {
		return showTitle;
	}
	
	public Name getHostName() {
		return hostName;
	}
	
	public Contestant getContestant(int index) {
		return contestant[index];
	}
	
	public int getNumContestants() {
		return numContestants;
	}

}
