Skip to content

This is an example of SOLID principles with Design Pattern in JAVA

Notifications You must be signed in to change notification settings

ClarkBelen/SOLID-with-Design-Pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SOLID-with-Design-Pattern

The NEU Library offers a variety of resources, including books, theses, capstones, internet access, journals, and newspapers.

Currently, the Student object has methods like borrowBook(), borrowJournal() with a parameter of title, which directly depend on specific resource types.

To adhere to the Dependency Inversion Principle (DIP) and ensure flexibility for future changes (such as introducing audio books or e-journals), we need to refactor the program while maintaining SOLID principles. The goal is to create a robust system that can seamlessly accommodate new resource types in the future.

Your solution should not violate other SOLID principles.

UML Class Diagram

SOLIDwithDesignPattern

Output

image

About

This is an example of SOLID principles with Design Pattern in JAVA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages