Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
And those times when they are in fact the same thing >.<
Sometimes. If I write a concrete abstraction that fully obfuscates something that would otherwise be directly usable and controls the way I access it, it's also an encapsulation. Abstraction of the non-concrete variety forces things to encapsulate, and so on and so forth.
If they were just looking for boilerplate definitions, then you dodged a bullet :)
I do pretty much everything as composition, so the lines blur.
dummy23817dMan one line abstraction way of hiding data and encapsulation is method of hiding data. Encapsulation like private, protected etc.