Encapsulate Collection

 

A method returns a collection.

Make it return a read-only view and provide add/remove methods.

posted @ 2007-05-15 17:06  南守拥  阅读(299)  评论(2编辑  收藏  举报