OBJECT-ORIENTED PROGRAMING VS. PROCESS-ORIENTED PROGRAMING
Since the invention of computer, many programming approaches has been evaluated and tested like modular programming, structured programming, etc. The main aim of these techniques was to handle the complex and complicated programs. But, there were ome pitfalls and these techniques. So, other approaches like object-oriented programming came into scene with incorporate features like structured programming with several new and powerful concepts.
Process Oriented Programming includes languages written in High Level Language like COBOL, FORTRAN and C. The main focus was kept on the functions to be performed in a program rather than on data that is the main part of any organization. There was no restriction on the flow of data between functions. In this, functions were written sequentially to perform certain tasks in an orderly manner. So, it doesn’t model real world problems very well.
On the other hand, Object Oriented Programming treats data as main element and restricts its flow in the system. The data are tied with the functions and any way to access data is through functions. So, data is hidden from accidental changes. This technique led to the evolution of the concept of classes and objects. In class, functions and data are tied together having three different mode of access, i.e., Private, Public and Protected. Objects are entities of class. Through objects we access functions and data member (depending on access mode). It models real world problems very well, i.e., it provides flexibility in programs. It is an approach that provides a way of crating partitioned memory area for both data and functions. It includes features like Inheritance, Polymorphism, encapsulation, dynamic binding, data hiding, etc. through Inheritance, we can extend use of existing classes. We need not h write the program from scratch, rather we inherit it.
Object Oriented Programming has gained importance in user interface design.