Language by itself is not as useful. Event patterns have the same structure as the Events they match. Any changes made down that particular branch won’t impact on code set 2. What this means is that you extract one of the dimensions into a separate class hierarchy, so that the original classes will reference an object of the new hierarchy, instead of having all of its state and behaviors within one class. It’s only one of many potential ideas. Bridge pattern. The bridge design pattern is one of the 23 well-known GoF design patterns. Gestures (finger movements) and the Mouse are very different input devices, but their actions map to
It is sometimes referred to as a double Adapter pattern.