In this tutorial, we'll learn Composite design pattern — Java
In software engineering, the _**_composite pattern**_ is a partitioning design pattern. The composite pattern describes a group of objects that are treated the same way as a single instance of the same type of object. The intent of a composite is to “compose” objects into tree structures to represent part-whole hierarchies. Implementing the composite pattern lets clients treat individual objects and compositions uniformly._
This post looks at how to use the composite design pattern in Java, specifically the objects used in the pattern: component, composite, leaf, and client.
Factory design pattern — Java. In class-based programming, the factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. This is done by creating objects by calling a factory method — either specified in an interface and implemented by child classes, or implemented in a base class and optionally overridden by derived classes — rather than by calling a constructor.
In this tutorial, we'll learn Prototype Design Pattern - Java. What's so special about it? Why is it used by so many professionals? Read the full article and you will understand.
Guidelines for Java Code Reviews.Get a jump-start on your next code review session with this list.
In this tutorial, we'll learn Builder design pattern — java. What's so special about it? Why is it used by so many professionals? Read the full article and you will understand.