Skip to main content

Abstraction: An OO Concept

Abstraction is a filtering action. It is performed by Computer Programmers. Filtering helps Programmers in coding. Coding supported by Abstraction lays emphasis on inclusion of code in a Computer Program that is essential.

Code that can shift the focus away from the problem is simply shown the door. Capability of a code to add value is the criterion for filtering. Coding away from the focal point hardly serves the problem. Relevant coding  helps to perform Object Oriented Programming.

If our coding activity is based on the golden principle of Abstraction, a good Program is born. Good quality code is produced if our ideas are short and smart. Indeed it's good to play with Abstraction right from the very beginning of coding activity. Sticking to Abstraction till the end of coding activity is strongly recommended.

The simplicity and compactness that result from Abstraction marvels Object Oriented Programming Paradigm. Abstraction allows us to make the best use of Computing power. We save memory space and this helps.

Abstraction is readily supported by Programming Languages like C++ and Java. C++ and Java come with a superb layout called 'class'. 'class' concept helps to translate Abstraction activity that forms a concise solution.

The data set of the problem and coded operation units are available in the form of a capsule. This capsule of combined data and code is our 'class'. This  act of combining  is called Encapsulation of data and code. Yes, Encapsulation is putting together the data part and the code segment in a block. 

__________________________________________

class MyClass {


      //data goes here


     //code lies here


};

__________________________________________


Fig: A Class Named 'MyClass'

The 'class' structure supports Abstraction in a big way. Our ideas take the form of a code very easily. This code is characterised by compactness. The code is well-proportioned. So, life with the 'class' concept is easygoing. 

___________________

Goodbye!

Have a great day!!

____________________

Comments

Popular posts from this blog

Interface Message Processor ( IMP )

Interface Message Processor ( IMP ) is a special purpose Computer. The Processor plays a vital role in Host-to-Host communication. IMP is placed between Host Computers.  IMP helps Hosts to exchange information. IMPs ( Interface Message Processors ) form a group. The group dedicates itself towards reliable transmission of Packets. _________________________ Note: An Interface Message Processor can be supposed to have a face. Firstly this supposed face of IMP is in the direction of the first Host, which sends the  message. Secondly, this face is turned towards the other Host.  Now, the IMP,  with its face turned around, communicates with this other Host.  Transformed message from IMP is communicated to this Host. __________________________ Message ( a piece of information ) sent from the Host ( source of information  ) is transformed into Packets. Transformation of the message into Packets is performed by an IMP. These Packets are forwarded to the receiver H...