Bridge Pattern

This pattern provides a connection between an interface, holding information about possible actions, and abstract class, representing a base for objects being used in these actions.

interface Restaurant (implementation) – with possible actions prepare, serve,…
abstract class (abstraction) – representing an object food, may it be soup, salad, desert,…

The base of the bridge pattern, is abstract class making use of composition, to connect to the interface.

Solution without Bridge Pattern
Solution with Bridge Pattern

Last update 03.08.2019.
For possible mistakes in content or typos, I apologise and kindly ask you to report here.