Data abstraction and Data Encapsulation Concept in JAVA

0

Data Abstraction:-

It is used to hide the internal functionality of the program. abstraction means Data Hiding.

We should display only essential details of software application and hide all non-essential details in the program is managed by abstraction.


Data abstraction is used to provide data security in application hence for any secure application login module is essential hence it will be shown and all screen will be hidden from the application.


How we can implement Data abstraction practically in JAVA:-

1 Using Interface:-  Module-level abstraction

2  Using Abstract Class:-  Class-level Abstraction

3 Using Access Specifier:-  Method level abstraction

4 Property:-  JAVA Use Property concept to hide Data Member


Data Encapsulation:-
...............................................................................................................

it is used to encapsulate all details using single unit .encapsulation is the part of data integration.


The package is used to encapsulate classes, the class is used to encapsulate method and method is used to encapsulate data members.

We should always declare data members under member function, declare member function underclass, declare class under the package.




Post a Comment

0Comments

POST Answer of Questions and ASK to Doubt

Post a Comment (0)