10

Implementing Software Design Principles and Patterns in Java

Software design principles provide guidance on how you construct your classes and how your objects should interact. They are not tied to a specific problem. For example, the single responsibility principle encourages us to write methods that perform a single task. Software design patterns are reusable concepts for solving common problems in software design. For example, should we need to have a single instance of an object in an application, you will want to use the Singleton pattern. This pattern has nothing to do with the language you are using, nor does it describe the required code for the pattern. What these principles and patterns do is describe a solution to common problems ...

Get Transitioning to Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.