Programming Models: Structured Programming Model and Object Oriented Programming Model


Language is a medium to communicate with its own rules, grammar and dictionary. Language makes possible to communicate with each other. So, if we want to communicate with computer, we must know the language which the computer knows. There are many languages that are created time to time such as Pascal, C, JAVA, C++, .NET and many more.
If I name all the languages then my post will be full of languages names and which is beyond the scope of this topic. To learn a language, we have to learn the set of instructions, keywords, rules and operators of that particular language according to their base model. Models cab be described as a pattern or approach which should follow while developing a solution.
Generally, There are three programming model. These are:
  1. Structured Programming Model.
  2. Object Oriented Programming model.
  3. Component Based model.

  • Structured Programming model

A structured program is built by breaking down the whole program or project into small divisions by using functions. Each of these functions can have its own data and logic. Communication with these functions is easily done by calling and passing arguments and receiving data.
Structured programming ruled for over two decades. Since structured programming model also have some drawbacks such as when same data is processed in many functions and when changes occur in data types, modification must be made at each location that acts on those data types within the program. The other reason is that the function and the data structure didn't model the real world very well. So, to overcome all these problems, a new model Object Oriented Programming Model came into existence.

  • Object Oriented Programming Model

The whole world is object oriented. Suppose, if we have to take admission in a particular college, then first we have to prepare the outline and work on it. The fundamental change in OOPs model is that a program is designed amount the data being operated itself rather than the operation. The basic idea to combine both the data and procedure which operates on the data together is called object. Here, data is hidden, so it is safe from accidental alterations. The data and its functions are encapsulated into a single entity. This simplifies writing, debugging and maintaining program. It also increases re-usability  as object once defined can be used at any place. There are many OOPs languages such as C++ and JAVA. The Characteristics of the OOPs will be published in next post.

Keep Reading!

First