The Visitor Design Pattern is a behavioral design pattern. It comes in handy when we have to add a capability to an object with minimal change to the existing object structure. Come, let's dive in!...
The command design pattern is a behavioral design pattern. This pattern focuses on encapsulating all the data and related actions of an object. This design pattern allows separating the objects that produce the behavior and the objects that consume them....
The decorator design pattern is a structural design pattern that is used for extending the functionality of existing classes without much of a change in the codebase. You can also look at this design pattern as a wrapper around the existing functionality.
Let’s dive into the...
So what is a singleton? In a simpleton’s language, a singleton is a class that will be instantiated only once. This essentially means that there will be only one instance of the Java class in the Java Virtual Machine (JVM). The singleton was initially proposed...