Self Encapsulate Field

You are accessing a field directly, but the coupling to the field is becoming awkward.

Create getting and setting methods for the field and use only those to access the field.
posted @ 2007-05-14 21:58  南守拥  阅读(195)  评论(0)    收藏  举报