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

University Open University Malaysia (OUM)
Subject Implement the class: Object-Oriented Programming


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 Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.


(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().

Stuck in Completing this Assignment and feeling stressed ? Take our Private Writing Services.

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.


Recent Solved Questions

Online Exam & Assignment Writing Services

11770+ Orders Delivered

5 Star Rating

Confidential & Secure Assignment Help For

Group Assignment Help

Online Exam -Test & Quiz

Cheapest Price Quote

Diploma & Certificate Levels

Semester & FYP Papers

Summative & Individual

GBA & Reflective

Last Minute Assistance

Sample Assignment Download

BQS667 Oil And Gas: Technology And Management UITM Assignment Sample Malaysia
BQS667 Oil and Gas: Technology and Management is the ideal course for professionals seeking to expand their knowledge and skills in the energy industry. In this comprehensive online course, you'll…
Assignment Sample
BAB151 Arabic Language II UITM Assignment Sample Malaysia
BAB151 Arabic Language II course is a great opportunity for anyone interested in mastering the language and culture of the Middle East. Beyond basic conversational skills, this course teaches about…
Assignment Sample


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

Get Assistance for Assignments, online Exam, and Projects Writing