✏✏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
History,
7 months ago
Political Science,
1 year ago
English,
1 year ago
Math,
1 year ago
Math,
1 year ago