Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Servant is a
design pattern used to offer some functionality to a group of classes
without defining that functionality in each of them. A Servant is a
class whose instance provides methods that take care of a desired
service, while objects for which the servant does something, are taken
as parameters. Servant is used for providing some behavior to a group of
classes. Instead of defining that behavior in each class - or when we
cannot factor out this behavior in the common parent class - it is
defined once in the Servant. For example: we have a few classes
representing geometric objects. We can draw these objects on some
canvas. When we need to provide a "move" method for these objects we
could implement this method in each class, or we can define an interface
they implement and then offer the "move" functionality in a servant.