subject

The purpose of this exercise is to model the types of tickets that might be sold for campus events. all tickets will have strings for the venue, event name, and date. each ticket will also have a base price. create an abstract class ticket with the following constructor: public ticket(string venue, string event, string date, double baseprice) provide getters for the venue, event, date and baseprice provide a method int getnumberofholders() that returns 1. provide a tostring method provide an abstract method to return the actual cost of this transaction double getprice() create a subclass advanceticket for tickets bought in advance at a discount. the constructor for advanceticket should be public advanceticket(string venue, string event, string date, double baseprice, double discount). the discount value is a ratio for reducing the baseprice of the ticket.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
How can i clip a picture to a question on the computer?
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
You know the right answer?
The purpose of this exercise is to model the types of tickets that might be sold for campus events....
Questions
question
Mathematics, 31.08.2019 01:00