* Reduces checkstyle errors in trampoline * Reduces checkstyle errors in twin * Reduces checkstyle errors in typeobjectpattern * Reduces checkstyle errors in unit-of-work * Reduces checkstyle errors in value-object
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags | ||
---|---|---|---|---|---|---|---|
pattern | Twin | twin | /patterns/twin/ | Creational |
|
Intent
Twin pattern is a design pattern which provides a standard solution to simulate multiple inheritance in java
Applicability
Use the Twin idiom when
- to simulate multiple inheritance in a language that does not support this feature.
- to avoid certain problems of multiple inheritance such as name clashes.