Talk:Encapsulation boundary
From CSSEMediaWiki
(Difference between revisions)
(New page: Small fix -- ~~~~) |
|||
Line 1: | Line 1: | ||
Small fix -- [[User:Jason Clutterbuck|Jason Clutterbuck]] 22:46, 25 September 2008 (UTC) | Small fix -- [[User:Jason Clutterbuck|Jason Clutterbuck]] 22:46, 25 September 2008 (UTC) | ||
+ | |||
+ | I still don't see why C++/Java are only about class encapsulation. If you use protected attributes, then it's object encapsulation. I think the private keyword is just a way to protect certain attributes even more (which can be useful but also raises the question whether [http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html?page=1 extends are evil] or not. --[[User:TobiW|TobiW]] |
Revision as of 04:58, 30 July 2009
Small fix -- Jason Clutterbuck 22:46, 25 September 2008 (UTC)
I still don't see why C++/Java are only about class encapsulation. If you use protected attributes, then it's object encapsulation. I think the private keyword is just a way to protect certain attributes even more (which can be useful but also raises the question whether extends are evil or not. --TobiW