Open-Closed Principle with Example
Learn the open-closed principle with a Java report writer example. Add a report format through an interface and understand what still needs to change.
Learn the open-closed principle with a Java report writer example. Add a report format through an interface and understand what still needs to change.
Understand the single responsibility principle with a Java example. Separate employee storage from email delivery and see where workflow coordination belongs.
Understand fast, independent, repeatable, self-validating and timely unit tests. Follow a Java example that controls time to check a subscription boundary.
Learn the five SOLID principles with Java examples and diagrams. Understand responsibilities, extension, substitution, interfaces and dependency direction.
HowToDoInJava provides tutorials and how-to guides on Java and related technologies.
It also shares the best practices, algorithms & solutions and frequently asked interview questions.