Re:Inheritance versus Composition
by TeMPOraL on Thursday May 09, 2019 @05:51AM
(#19866746)
That kind of "encapsulation" is simply storing code together with the data it belongs to (good practice) and possibly namespacing it together. It's not what they mean by "encapsulation" in OO courses, though it's arguably the only benefits "encapsulation" give you.
[ Parent
| on HN ]
There are no comments on this comment yet.