Decoration mode WrapperMode

Decoration mode Decoration mode, also known as Decorator or Wrapper mode Refer to Alexander Shvets' in-depth design pattern 1. Purpose of decoration mode Decorator pattern is a very common design pattern. Decorator pattern can dynamically add other responsibilities to an object. The decorator pattern is more flexible than subclassing in ter ...

Posted on Tue, 23 Nov 2021 20:46:14 -0500 by Mr Camouflage

Object oriented design pattern -- create pattern -- Abstract Factory

    Abstract factory pattern: Create other factories around one super factory. The super factory is also known as the factory of other factories - products can not be added, but product families can be added. It provides an interface to create a series of related or interdependent objects without specifying their specific classes ...

Posted on Mon, 20 Sep 2021 12:05:54 -0400 by malcome_thompson