New Year's home night - Si Modern

xiaoxiao2021-03-06  43

Author: zfive5 (zhaozidong)

Email: zfive5@yahoo.com.cn

At night, I bought 2.25-liter cola and the laminated nose of Tree Mai Lang (nearby always like this), watching TV to 0 points, the middle is drinking Coke and flipping books, a farten about J2EE Book, feeling! I don't want to sleep after 0 o'clock, so the Java and patterns of the colleagues began to turn over. I haven't had any courage to see it. This book is amazing, and there is too much in the bookstore. But this turn is from 3:30 in the evening, there is no behavior pattern.

It really realizes a few models!

Simple Factory: Simple creates an object factory, you can use it, but it is forced to open-closed principles.

Factory Method: Improvement on the basis of the simple factory under the premise of open-enclosed principles.

Abstract factory: A set of factory methods, in order to achieve a group of product families.

Adapter: Open-enclosed on existing objects or classes.

Modification mode: It is closed to existing features.

The understanding of important modes of other modes have not been met, so I don't dare to write Hu to say!

Recently I have bought two falsis in Dearbook, Tomcat and Structs, very worth seeing.

转载请注明原文地址:https://www.9cbs.com/read-59537.html

New Post(0)