0% found this document useful (0 votes)
30 views1 page

Booking Reference

Uploaded by

habeebmuhaisen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views1 page

Booking Reference

Uploaded by

habeebmuhaisen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

package [Link].

cinemasystem;

public abstract class BookingReference {


public int referenceNumber;
public double ticketPrice;
public int ticketNum;

public BookingReference(int referenceNumber, double ticketPrice, int ticketNum)


{
[Link] = referenceNumber;
[Link] = ticketPrice;
[Link] = ticketNum;
}

public abstract int getReferenceNumber();

public double getTicketPrice() {


return ticketPrice;
}

public int getTicketNum() {


return ticketNum;
}

public void displayDetails() {


[Link]("Ticket Price: $" + ticketPrice);

[Link]("Ticket Number: " + ticketNum);

public double calculateTotalPrice(){

return ticketPrice*ticketNum;
}

You might also like