Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have this abstract class called ticket, and I want other classes to inherit the base value by extending it (atTheDoorTickets would contain the Tickets
I have this abstract class called ticket, and I want other classes to inherit the base value by extending it (atTheDoorTickets would contain the Tickets class) except when I type in public class WalkupTicket extends Ticket { } it gives me an error on WalkupTicket. I know it has something to do with the abstract class because when I delete "abstract" from my ticket class, everything works.
) TicketTesterjava MTicket.java | D "Val kupicket.java 23 | D-AdvanceTicket.java 1 public class WalkupT.icket extends Ticket DStudentAdvanceTicket.java 3 public WalkupTicket(int number) super number); price 50; 10Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started