What is Abstraction in JAVA?, Computer, The Clairifiers

What is Abstraction in JAVA?


Abstraction denotes a simple representation of an actual item. It is the development of a software object to represent an object we can find in the real world.

Data abstraction and encapsulation are closely tied together, because by definition data abstraction is the development of classes, objects, and types in terms of their interfaces and functionality, instead of their implementation details. Encapsulation hides these implementation details.

We humans also manage complexity through abstraction. For example, we do not think of our music system or stereo as a set of hundreds of individual parts. We think of it as an object with its own unique behaviour. This abstraction allows us to listen to music on the stereo, without being overwhelmed by the complexity of the parts that form the stereo. We can overlook the details of how the system is working.

A way to manage abstraction is to use hierarchical classification i.e., the complex systems are layered into more manageable pieces. From the outside, a music system is one unit. Inside it consists of a radio, a CD player, an amplifier, speakers, etc. 


Thank You So Much For Reading Till End!

Please share this post with your batch mates & whoever else needs this.

1 Comments

Post a Comment

Previous Post Next Post