Abstraction & Encapsulation
janani selvaraj janani selvaraj
46 subscribers
6 views
0

 Published On Oct 13, 2024

#snsinstitutions
#snsdesignthinkers
#designthinking

Abstraction and encapsulation are two fundamental concepts in object-oriented programming (OOP) in Java that help manage complexity and enhance code organization.
Abstraction is the concept of hiding the complex implementation details of a system and exposing only the essential features to the user. It allows developers to focus on what an object does instead of how it does it.
Encapsulation is the practice of bundling the data (attributes) and methods (functions) that operate on the data into a single unit, typically a class. It restricts direct access to some of an object's components, which is a means of preventing unintended interference and misuse of the methods and data.

show more

Share/Embed