Skip to content

PR for Recursive Functions#3

Open
asad-lodhi wants to merge 5 commits into
mainfrom
recursive-functions
Open

PR for Recursive Functions#3
asad-lodhi wants to merge 5 commits into
mainfrom
recursive-functions

Conversation

@asad-lodhi

Copy link
Copy Markdown
Owner

Request to pull recursive-functions branch into main branch

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.
@asad-lodhi asad-lodhi requested a review from Kashif-E August 28, 2025 12: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