Mudit Porwal 09585c3874 Removed AvoidStarImport Rule
Added JavaDocType Rule
2017-03-22 01:16:02 +08:00
..
2017-03-22 01:16:02 +08:00
2015-11-14 17:38:35 +08:00

layout, title, folder, permalink, pumlid, categories, tags
layout title folder permalink pumlid categories tags
pattern Twin twin /patterns/twin/ 7SR13OCm30NGLUW0n7UsCS42eyH4zdUpFbNVwNtKQij3qjjo0ICs8kTPJiMLUuPuVGnYAFNff2qdWvrk_l9wIEXfws10t88wno-4gKQ2-az9xsLaRoy0 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