Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 639 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 639 Bytes
layout title folder permalink categories tags
pattern
Twin
twin
/patterns/twin/
Creational
Java
Difficulty-Intermediate

Intent

Twin pattern is a design pattern which provides a standard solution to simulate multiple inheritance in java

alt text

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.

Credits