+ 1
Abstraction
I want know it any one tell in java
9 Réponses
+ 2
In short, Abstraction is hiding certain details of the data and displaying only what needs to be shown and access by the end user, only showing the essential features of the object. And makes sure you deal with the outside view of an object.
Here's an example:
A Java developer can make use of the high-level features of FileInputStream without concern for how it works. This will work irrespective of you storing your data in a list or an array, the end user does not need to know as long as the API (interface) to FileInputStream remains consistent, code built against previous versions will still work.
Similarly, when designing your classes, you will want to hide the internal implementation from others as far as possible. Which is the biggest benefit of Object Oriented Programming
+ 1
@INDLA here is a simple example of data abstraction
https://code.sololearn.com/c6Fz2kiaHXi6/#java
+ 1
thank you
+ 1
No, not professionally. I just have an intermediate understanding of it.
0
thank you so much sir you have any code for this
0
sir if you are develop any project in java
0
@Indla Is your question, are you a developer in Java?
- 1
yes
- 1
k thank you