When studying OOP, mainly Java, these two concepts are always connected, but I do not see real relationships or similarities between them. Correct me if I am wrong, but:
Abstraction is intended to identify key parts of an object and ignore everything else used in interfaces. Encapsulation only describes how data is protected and hidden, it affects permissions.
I do not see a real connection between them, is it there? Also a simple description for everyone, if mine was bad, would help.
These two concepts serve the same purpose, even in that Abstraction is more about the design, and encapsulation is more about the implementation(when discussing abstraction, there are no fields or data).
Abstraction is more about the design, and encapsulation is more about the implementation
- , , , .
, /, Abstraction , , , . , .
, , .
:
, , , , , , "" . , , , , "" (...)
. , ( , , ) , (, , ); , , . .
, . Java , . , . , , .
Abstract Abstraction focuses on the appearance of the object. shows only what is needed.
Encapsulation (hiding information) does not allow customers to see the internal view in which the abstraction behavior is implemented.