Skip to content

PR for Interactive Console - #4

Open
asad-lodhi wants to merge 6 commits into
mainfrom
interactive-console
Open

PR for Interactive Console#4
asad-lodhi wants to merge 6 commits into
mainfrom
interactive-console

Conversation

@asad-lodhi

Copy link
Copy Markdown
Owner

Request to pull interactive-console branch into main branch

asad-lodhi and others added 6 commits August 27, 2025 18:26
Abstraction inplemented in Abstract LibraryItem class
Inheritance & Polymorphism  implemented in Book, DVD, Magazine classes
Encapsulation implemented in Member class

Other changes include:
renamed App.kt -> Main.kt
added sample data in fun main() to test Book and Member classes
Created Library Class which holds collections of Items by Id, Items by
Category, Members and performs Borrowed Items tracking with HashMaps
Added Recursive Function Class with function to calculate CompoundLateFee

In Library class, added borrowItem, returnItem, findBooksbyAuthor,
getLibraryStatistics and other functons.

In main function, added working examples of Member and Library Class
functions.
Added an Interactive Console Application in Main.kt with options to add new
item, add new member, borrow item, return item

Added helpful user feedback in functions addItem and registerMember in
Library.kt
@asad-lodhi
asad-lodhi requested a review from Kashif-E August 30, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant