tickets purchased 10 or more days before the event cost 30 and advance tickets

Tickets purchased 10 or more days before the event

  • Ryerson University
  • COE 318
  • Test Prep
  • Pakistani
  • 18
  • 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.
Image of page 16
17
Image of page 17
18
Image of page 18

You've reached the end of your free preview.

Want to read all 18 pages?

  • Fall '08
  • Ken
  • Subroutine, public int, System.out.println, public void, public class

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture