Design Patterns Explained (6) - Bridge

xiaoxiao2021-03-06  50

INTENT: DECouple an abstract from itsimplementation so that the Two CAN Vary Independently.

Implementation Here Means The Objects That The Abstract Class An ITS Derivations Use to Implement Themselves with.

FOCUS on the? Problem Rather Than The Solution

Use CommonAlicity / Variability Analysis Rather Than Noun / Verb Analysis

Two Mandates of Oo Design

Find what varies and encapsulate it.favor composition over inheritance.

?

转载请注明原文地址:https://www.9cbs.com/read-115774.html

New Post(0)