Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Latest commit

 

History

History
8 lines (4 loc) · 269 Bytes

16.10.md

File metadata and controls

8 lines (4 loc) · 269 Bytes

16.10 练习

(1) 将SingletonPattern.java作为起点,创建一个类,用它管理自己固定数量的对象。

(2) 为TrashVisitor.java添加一个名为Plastic(塑料)的类。

(3) 为DynaTrash.java同样添加一个Plastic(塑料)类。