What is the difference between Abstraction and Encapsulation?
Short Answer
Views 15
Answer:
| Abstraction | Encapsulation |
|---|---|
| Hides implementation details | Hides data |
| Focuses on what | Focuses on how |
| Achieved using abstract classes/interfaces | Achieved using classes & access modifiers |
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.