💻 In object-oriented programming, there are use cases where composition beats inheritance. Composition is where objects are composed of other objects as components.
👨 The parent object delegates some of its responsibilities to the contained, thus encapsulating its own state and behavior. Here's how to do that in the Vaadin platform.
https://vaadin.com/docs/latest/create...