Create a Java class named Book as part of a Library Management System. Implement the class: Object-Oriented Programming Assignment, OUM, Malaysia


Open University Malaysia (OUM)

*We aren't endorsed by this school

Assignment Type

Individual Assignment


Implement the class: Object-Oriented Programming

Uploaded by Malaysia Assignment Help




Create a Java class named Book as part of a Library Management System. Implement the class with the following specifications:

Attributes/Data fields (all are private):

title – to hold the title of the book

author  – to hold the name of the author

price  – to hold the price of the book


  • A constructor to initialize the title, author, and price
  • Getter methods for each attribute
  • A setter method for price
  • A method displayDetails() to display the book details
  • A method getDiscountedPrice() that takes a discount percentage as a parameter and returns the discounted price of the book
  • A method comparePrice() that compares the price of the book with another book and displays the book title having a higher price. This method will have a Book object as its parameter

Then, include TWO additional methods of your choice that enhance the functionality of the Book class. You can also add one or two attributes to accommodate these two methods. Provide a justification, ranging from 250 to 350 words, explaining how these two methods contribute to the functionality of the class.

Provide clear comments on your program.

Get 30% Discount on This Assignment Answer Today!


(40 marks/markah)


Create TWO objects of Book in a main() method. The first object will have the following initial values:

Book title:      Java Programming

Author:           James Smith

Price:              450


The second object will have the following initial values:


Book title:      Advanced Java Programming

Author:           William Lee

Price:              600

Display the attribute values of each object.

Compare the price of the two books above and display the book title having the higher price by using the method comparePrice().

Get Solved Your Assignment( variable) and Earn A+ Grade!

Get Help By Expert

Are you a Malaysian student faced with the intricate task of implementing the "Object-Oriented Programming" class, which involves creating a Java class named Book for a Library Management System at OUM? We understand the challenges you might encounter during this academic journey. That's why we offer exceptional Assignment Assistance and Professional Research Paper Writing Help in Malaysia. Our expert team is here to alleviate your coding concerns and guide you through this assignment, ensuring you not only meet but exceed your academic goals. With our dedicated support, you can focus on achieving excellence in your coursework.



Instant Paper Writing Services by Native Malaysia Writers

Plagiarism Free Solutions
100% Original Work
24*7 Online Assistance
Native PhD Experts
Hire a Writer Now
Convincing Features
Plagiarism Free Report
On-Time Delivery
Native Writers
A+ Quality
100% Confidential
24*7 Online Assistance

Get these features included in Your Assignment

Get Assistance for Assignments, online Exam, and Projects Writing