第5页 Chapter2 Creating and Destroying Objects
- 章节名:Chapter2 Creating and Destroying Objects
- 页码:第5页
这一整章都很好,越看越清楚。 Builder 和 Design Pattern 的 Builder 不一样。
16人阅读
OrangeCLK对本书的所有笔记 · · · · · ·
-
第190页 Item 40: Design method signatures carefully
Prefer two-element enum types to boolean parameters.
-
第193页 Item 41: Use overloading judiciously
A safe, conservative policy is never to export two overloadings with the same number of...
-
第5页 Chapter2 Creating and Destroying Objects
-
第73页 ITEM 15: MINIMIZE MUTABILITY
To make a class immutable, follow these five rules: 1. Don't provide any methods that m...
-
第10页 ITEM 1: CONSIDER STATIC FACTORY METHODS INSTEAD OF CONSTRUCTORS
Here are some common names for static factory methods: - valueOf--Returns an instance t...
> 查看全部15篇
说明 · · · · · ·
表示其中内容是对原文的摘抄