Question: Create a java project and name it FinalExam_Q1: (0.25 for each error in the code) 1- Create new java package inside the project and name

 Create a java project and name it "FinalExam_Q1": (0.25 for each

Create a java project and name it "FinalExam_Q1": (0.25 for each error in the code) 1- Create new java package inside the project and name it "Library_pkg (0.5m) 2- Add new class to the Library.pkg and name it "Book". (1m) 3- Add the following attributes (member variables): to the Book class Book_no, title, type and Author (type attribute can take values like "Science, viction, or comedy). (1m) 4- Attributes should be encapsulated within the class. (2m) 5- Add a constructor to the class that initialize all variables. (1m) 6- Add whol method to Book class. the method should take one integer parameters (No) and return Author of the book. (1m) 7- Add display method to Book class that print all details on one line. (2m) 8- In the main program: Create an instance of the book class. (2m) b. Call the Whol) for book number 5 and display details of the book. (1m) The main program should handle All Exception (0.5m) 9. Add some comments to your program (0.5m) Test your program. (0.5m) a. C

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!