design pattern source code

that's some source code in a book called"大话设计模式"，I just clone it.