implements Twin design pattern #63

This commit is contained in:
hoswey
2015-11-14 17:38:35 +08:00
parent 27199325ec
commit fdbfa9e8ee
11 changed files with 308 additions and 0 deletions

20
twin/index.md Normal file
View File

@ -0,0 +1,20 @@
---
layout: pattern
title: Twin
folder: twin
permalink: /patterns/twin/
categories: Creational
tags: Java
---
**Intent:** Twin pattern is a design pattern which provides a standard solution to simulate multiple
inheritance in java
![alt text](./etc/twin.png "Twin")
**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.