4 ms·
Yeah, I thought coupling data and behavior was more or less the definition of an object.
by cgag 13y ago
Yeah, I thought coupling data and behavior was more or less the definition of an object.
- Fargren 13y agoAs long as an object's behaviour remains the same, the data can change without any problem. That's one of the big selling points of OO.
- platz 13y agoSo, then is there some vocabulary that is lacking to describe the difference between these two ideas, but seem to use the same words?
- gnaritas 13y agoThey work together, by encapsulating the data internally, one is free to change its representation. It keeps the coupling to that data local, the objects methods.