Abstraction

Abstraction is an important feature in Object-Oriented Programming.
We all human beings also manage complexity through abstraction.

For example, we don't think about of our music system or stereo as a set of hundreds of individual parts. It is an object with its own unique behaviour. Or we do not think about, that a car is made up of thousands of parts, but as an object.

This is an abstraction that makes us drive a car or listen to music on the stereo, without being overwhelmed by the complicity of the parts that forms the car or the stereo.

We can overlook the detail that how the system is working. Either it is working properly or not working properly.


Abstraction is the representation of essential features of a system without getting involved with having the complexity of the entire system.


More About Abstraction

A way to manage is to use hierarchical classification type. This means that we layer that , the complex systems into manageable pieces. From the outside a music system is if one unit. Inside it consist of a radio, and a CD player and a tape player.

Hierarchical abstraction can be applied to a computer program. The program can be transferred into different types of objects. A sequence of process steps can become a collection of messages between those objects. Each object will define its own unique behaviours.

AN EXAMPLE

All humans manage complexity through abstraction. For example, 
we do not think that a car is a set of thousands of individual parts. We think it as a well-defined objects with its own unique behaviour. This abstraction allows one to use a car to drive to the grocery store without being overwhelmed by the complexity of the parts.

Post a Comment

Previous Post Next Post