PrepZone Logo
PrepZone
Back to Java

Java · Easy

Difference between abstraction and encapsulation.

JavaOOP

Answer preview

Abstraction — hides complexity — it exposes only the relevant behavior and hides implementation details. It answers "what does the object do?"…