Computer Science, asked by yxoyf, 9 months ago

✏✏Here is your question✏✏

wht is encapsulation and abstraction.

Answers

Answered by Anonymous
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 Anonymous
15

\huge{\underline{\underline{\mathfrak{Answer}}}}

➡️ 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