the idea in separation of hierarchies of classes and composing them in one class container
![](https://digital-flame.ru/wp-content/uploads/2024/01/image.png)
from gof, there is a concept of abstraction and implementation, abstraction like a container for implementations that composed to the abstraction, in below example abstraction is remote control, and device is implementations
![](https://digital-flame.ru/wp-content/uploads/2023/12/image-2.png)
allows inherit different chains separately
![](https://digital-flame.ru/wp-content/uploads/2023/12/image-3-1024x555.png)