100%(1)1 out of 1 people found this document helpful
This preview shows page 16 - 18 out of 18 pages.
tickets purchased 10 or more days before the event cost $30, and advance tickets purchased fewer than 10 days before the event cost $40. •The ticket class has a method toString. A call on it returns a description an advance ticket number, price and how many days in advance the ticket was purchased. An example string would be "Number: 54, Price: 30.0 (8 days in advance)". Your advance ticket class should have minimal redundancy with your ticket class, and should take advantage of inheritance as appropriate.
You've reached the end of your free preview.
Want to read all 18 pages?
Subroutine, public int, System.out.println, public void, public class