Question: Question 1 Write, test and document (internally) a Java program, and required class definitions, to solve the following problem: a. Class Ticket has the following


Question 1 Write, test and document (internally) a Java program, and required class definitions, to solve the following problem: a. Class Ticket has the following attributes and operations: o attributes - name of purchaser - address of purchaser - date of purchase o operations constructor with parameters for each attribute accessor and mutator methods for each attribute a toString method b. In addition to Ticket attributes and operations, class seasonTicket has the following attributes and operations: o attributes -total number of games in the season total price for the season o operations - a constructor with parameters for the Ticket and seasonTicket attributes - accessor and mutator methods for the total number of games and the total price a toString method C. In addition to Ticket attributes and operations, class PerGameTicket has the following attributes and operations: o attributes - date of game - ticket price o operations - a constructor with parameters for the Ticket and perGameTicket attributes accessor and mutator methods for the date and price attributes a toString method d. In addition to Ticket attributes and operations, class Package has the following attributes and operations: o attributes - number of games in the package - the date of each game - package price o operations - a constructor with parameters for the Ticket and Package attributes - accessor and mutator methods for the number of games, the date of each game and the package price a toString method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
