Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Library Management System files and test files #297

Closed
wants to merge 1 commit into from

Conversation

SherllinT
Copy link
Contributor

was not able to finish the library test entirely

@@ -9,8 +10,15 @@
/** Represents a library. */
public class Library {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great attempt at supporting the new requirements, color me impressed! However, I'd like to see you implement a single method that allows you to checked out any type of library asset without having to know whether it's a book, dvd, magazine, or etc. You can do this using the right interface.

import com.codedifferently.lesson10.library.exceptions.WrongLibraryException;


public class Librarian {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A librarian should be treated like any other patron of the library. That's a hint that you should consider using inheritance to implement this functionality.

@SherllinT SherllinT deleted the lesson_10 branch April 16, 2024 13:58
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.

None yet

2 participants