0% found this document useful (0 votes)
27 views

OOPS Concepts

Abstraction hides unnecessary data at the design level by providing only relevant information, while encapsulation packages code and data within a single unit at the implementation level to protect internal information from outside access. Abstraction focuses on what information is visible, and encapsulation focuses on hiding details within a single code and data unit. Both aim to reduce complexity by hiding irrelevant or internal information from the user or outside code.

Uploaded by

Thiyaga Rajan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

OOPS Concepts

Abstraction hides unnecessary data at the design level by providing only relevant information, while encapsulation packages code and data within a single unit at the implementation level to protect internal information from outside access. Abstraction focuses on what information is visible, and encapsulation focuses on hiding details within a single code and data unit. Both aim to reduce complexity by hiding irrelevant or internal information from the user or outside code.

Uploaded by

Thiyaga Rajan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

OOPS Concepts: Abstraction and Encapsulation: Abstration: Abstration is used for hide the data and giving relevant

information. It solves the problem in desing level itself. Encapsulation: Encapsulation is used for hide the code and data in a single unit to protect the data from the outside the world. It solves the problem in implementation level. Ex:Class Difference between Encapsulation and Abstraction 1. Abstraction solves the problem in the design level 1. Encapsulation solves the problem in the implementation level 2. Abstraction is used for hiding the unwanted data 2. Encapsulation means hiding the code and data in and giving relevant data to a single unit to protect the data from outside world 3. Abstraction is a technique that helps to identify 3. Encapsulation is the technique for packaging the which specific information should be visible and information in such a way as to hide what should be which information should be hidden. hidden, and make visible what is intended to be visible.

You might also like