Ticket and Inheritance FRQ.pdf - Ticket and Inheritance FRQ...

This preview shows page 1 - 2 out of 2 pages.

Ticket and Inheritance FRQ
Ticket and Inheritance FRQ a) Write the complete class declaration for the class Advance. Include all necessary instance variables and implementations of its constructor and methods including getPrice() method. The constructor should take a parameter that indicates the number of days in advance that this ticket is being purchased. Tickets purchased ten or more days in advance cost $30; tickets purchased nine or fewer days in advance cost $40 b) Write the complete class declaration for the class StudentAdvance. Include all necessary

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture