✏✏Here is your question✏✏
wht is encapsulation and abstraction.
Answers
Answered by
3
HEYA! !
Abstraction is about hiding unwanted details while giving out most essential details, while Encapsulation means hiding the code and data into a single unit e.g. class or method to protect inner working of an object from outside world.
Answered by
15
➡️ Encapsulation is one of the fundamental concepts in object-oriented programming (OOP). It describes the idea of bundling data and methods that work on that data within one unit, e.g., a class in Java.
➡️ Abstraction means displaying only essential information and hiding the details. Data abstraction refers to providing only essential information about the data to the outside world, hiding the background details or implementation.
Similar questions
Social Sciences,
5 months ago
History,
5 months ago
Political Science,
9 months ago
Physics,
9 months ago
English,
11 months ago
Math,
11 months ago
Math,
11 months ago