Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

如何加入一個未宣告的物件而不修改原程式只加入程式

0 views
Skip to first unread message

Harold

unread,
May 6, 1998, 3:00:00 AM5/6/98
to

==> 在 AKK...@titan.cc.ntu.edu.tw (AKK) 的文章中提到:
> /*如何加一除法之物件如下,But不須修程式只需加程式*/

可以使用 Visitor pattern 的寫法
參考 Design Patterns Elements of Reusable Object-Oriented Software
by E. Gamma, R. Helm, R. Johnson, J. Vlissides
Addison-Wesley

--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

0 new messages