Post by PawanI need a clear picture of difference between encapsulation and
Abstraction in oops concepts.
Encapsulation is primarily about how one organises and references
functionality (modules, classes etc) .
Abstraction is primarily about describing the essence of something,
without going into reams of detail (like the abstract of a literary
publication does) .
Tis notable that there are dictionary definitions of "encapsulate"
that are quite close to that of abstraction.
In ADT theory, the "holy trinity" are :
1. abstraction
2. encapsulation
3. information hiding
with :
- the concepts being orthogonal to each other
- 2 being a useful enabler/facilitator of 1/3
Regards,
Steven Perryman