Project
Project
Project
Library Movie Management System
Overview
This project involves building a *Library Movie Management System* to manage movies and
their associated information. The system allows users to add, view, and manage movies
available in the library. The project will be completed with a good structure and gradual
approach.
Code Structure:
1. Create an abstract class “LibraryItem” with attributes:
● Id (int)
● Title (String)
2. Create class Movie that inherited from LibraryItem and implement Borrowable interface
● director (String)
● duration (int)
● Borrower (String)
● isBorrowed (boolean)
● Release Year (int)
● Implement method `getDetails()`: Returns a string of movie details.
● Implement method borrowItem
● Implement method returnItem
3. Create three subclasses that inherited from `Movie`:
a. ActionMovie:
i. Additional attributes: `mainActor` (string)
ii. Implement `getDetails()` to include all data in the description.
b. ComedyMovie:
i. Additional attributes: `comedian` (String).
ii. Implement `getDetails()` to include all data in the description.
c. DocumentaryMovie:
i. Additional attributes: `topic` (string).
ii. Implement `getDetails()` to include all data and the descriptions.
4. Create an Interface Borrowable , Define methods and Implement these method in
Movie class
a. borrowItem(): Marks the movie as Borrowed
b. returnItem(): Marks the movie as returned.
Good Luck