Write a Java application program to implement the concept of Inheritance.  Procedure:  Construct three subclasses to inherit the properties of a superclass.   Each subclass has overriding constructor and methods (include methods with computations)   Instantiate two times the parent class.  Instantiate each subclass 5 times  Display all important information.  Make the variables all about books (could add what title, genre, author, its price etc.)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hello! Please, help me with my assignment in programming! Thank you so much!

 

Write a Java application program to implement the concept of Inheritance. 

Procedure: 

  1. Construct three subclasses to inherit the properties of a superclass.  
  2. Each subclass has overriding constructor and methods (include methods with computations) 
  3.  Instantiate two times the parent class
  4. Instantiate each subclass 5 times 
  5. Display all important information. 
  6. Make the variables all about books (could add what title, genre, author, its price etc.)
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

hello! pls help me again in my homework, thank you.

Create a java program about Bus Ticketing System consisting all the lessons in java like methods and construct also include inheritance. Attached below are the expected output of the program, thank you!

Bus no:
Driver:
Price: 200
From:
2023
Eros
1. Add new Bus Details:
2. Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5. Exit
Enter your choice: -> 4
Departure Time:
Tokyo
To:
3:00am
1. Add new Bus Details:
2. Reserve your seats:
Arrival Time:
Shibuya
3.Show the available seats in a bus:
4.Buses Available Now:
5. Exit
Enter your choice:-> 5
Successfully Logged out from the Application. Visit Again!
<Thank You :)>
Process exited after 323.3 seconds with return value
Press any key to continue.
7:00am
Transcribed Image Text:Bus no: Driver: Price: 200 From: 2023 Eros 1. Add new Bus Details: 2. Reserve your seats: 3.Show the available seats in a bus: 4.Buses Available Now: 5. Exit Enter your choice: -> 4 Departure Time: Tokyo To: 3:00am 1. Add new Bus Details: 2. Reserve your seats: Arrival Time: Shibuya 3.Show the available seats in a bus: 4.Buses Available Now: 5. Exit Enter your choice:-> 5 Successfully Logged out from the Application. Visit Again! <Thank You :)> Process exited after 323.3 seconds with return value Press any key to continue. 7:00am
Departure time: 3:00am
Arrival time: 7:00am
From:
To:
Enter bus no: 2023
Enter Driver's name: Eros
Enter price: 200
Enter bus no: 2023
Bus no:
Driver:
From:
1.
5.
9.
13.
17.
21.
25.
29.
1. Add new Bus Details:
2. Reserve your seats:
Bus no: 2023
Seat Number: 1
Enter passenger's name: Tadashi
2023
Eros
Tokyo
Tadashi
2.
Empty 6.
Empty 10.
Empty 14.
Empty 18.
Empty 22.
Empty 26.
Empty 30.
3.Show the available seats in a bus:
4.Buses Available Now:
5. Exit
Enter your choice:-> 1
Tokyo
Shibuya
1. Add new Bus Details:
2. Reserve your seats:
3. Show the available seats in a bus:
4.Buses Available Now:
5. Exit
Enter your choice: -> 2
1. Add new Bus Details:
2. Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5. Exit
Enter your choice:-> 3
Arrival time:
To:
3.
Empty
Empty 7.
Empty 11.
Empty 15.
Empty 19.
Empty 23.
Empty 27.
Empty 31.
There are 31 seats empty in Bus No: 2023
The seat no 1 is reserved for Tadashi.
7:00am Departure time: 3:00am
Shibuya
Empty
Empty
Empty
Empty
Empty 20.
Empty
24.
16.
28.
Empty
Empty 32.
4.
8.
12.
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Transcribed Image Text:Departure time: 3:00am Arrival time: 7:00am From: To: Enter bus no: 2023 Enter Driver's name: Eros Enter price: 200 Enter bus no: 2023 Bus no: Driver: From: 1. 5. 9. 13. 17. 21. 25. 29. 1. Add new Bus Details: 2. Reserve your seats: Bus no: 2023 Seat Number: 1 Enter passenger's name: Tadashi 2023 Eros Tokyo Tadashi 2. Empty 6. Empty 10. Empty 14. Empty 18. Empty 22. Empty 26. Empty 30. 3.Show the available seats in a bus: 4.Buses Available Now: 5. Exit Enter your choice:-> 1 Tokyo Shibuya 1. Add new Bus Details: 2. Reserve your seats: 3. Show the available seats in a bus: 4.Buses Available Now: 5. Exit Enter your choice: -> 2 1. Add new Bus Details: 2. Reserve your seats: 3.Show the available seats in a bus: 4.Buses Available Now: 5. Exit Enter your choice:-> 3 Arrival time: To: 3. Empty Empty 7. Empty 11. Empty 15. Empty 19. Empty 23. Empty 27. Empty 31. There are 31 seats empty in Bus No: 2023 The seat no 1 is reserved for Tadashi. 7:00am Departure time: 3:00am Shibuya Empty Empty Empty Empty Empty 20. Empty 24. 16. 28. Empty Empty 32. 4. 8. 12. Empty Empty Empty Empty Empty Empty Empty Empty
Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

plss help me with my programming homework, thank u!

Write a java program that will generate the given GUI with necessary operations ( +, -, *, /, and %). The output must look like in the image below.

Swing Arithmetics
First Number
Second Number
Result
CLEAR
X
123
321
39483
Transcribed Image Text:Swing Arithmetics First Number Second Number Result CLEAR X 123 321 39483
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education