/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package summer2014; /** * * @author jcmt */ public class Concert { private int day; private int month; private int year; private String performer; private float ticketPrice; public Concert() { } public Concert(int day, int month, int year, String performer, float ticketPrice) { this.setDay(day); this.setMonth(month); this.setYear(year); this.performer = performer; this.setTicketPrice(ticketPrice); } public boolean setDay(int day) { if ((day > 0) && (day < 32)) { this.day = day; return true; } this.day = 1; return false; } public int getDay() { return day; } public int getMonth() { return month; } public void setMonth(int month) { this.month = month; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } }