This article describes the Servant design pattern. This is a
behavioral design pattern, a category of
design pattern used by software engineers, when writing computer programs.
This article describes the Servant design pattern. This is a
behavioral design pattern, a category of
design pattern used by software engineers, when writing computer programs.
This article describes the Servant design pattearchy-item">Introduction
The Servant pattern is a
design pattern, used in software engineering to encapsulate a service class that can be used to perform common tasks on a set of classes, rather than repeating the code in each class. The class is passed into the servant,
which performs it's service on the class.
It is defined as a
behavioral design pattern, because the servant is acting on the classes to change their behavior.
The servant pattern helps keep code tidy and removes duplication.
[please contribute]