News
A tutorial highlighting the various design patterns in Java. Learn about the benefits and different types of design patterns.
The methods in an abstract factory pattern are factory methods and both of these design patterns are used to decouple the implementation classes using abstract types and also factories.
Inspired by Ruby ’s polymorphic ability to create different objects based on context, Venkat proposes an implementation of the factory method pattern by using Java’s default keyword.
In essence, the Abstract Factory design pattern is used to create a factory of factories. In the Abstract Factory design pattern, the consumer invokes the Factory methods to create the objects.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results