Skip to content

Files

Latest commit

 

History

History
 
 

twin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
layout title folder permalink categories tags
pattern
Twin
twin
/patterns/twin/
Structural
Extensibility

Intent

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

Class diagram

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