Difference Between Structured Programming and Object Oriented Programming

Structured Programming and Object Oriented Programming (OOP) are both programming paradigms. Programming paradigms vary in how every element of the programs is shown and how steps are given for problem solving. Object Oriented Programming concentrates on speaking on issues using real world things and their respective behaviour as suggested by the name. On the other hand, Structured Programming focuses on organizing the program in a sensible way. The major difference between the two programming paradigms is that the focus of Structured Programming is to organize a program in to a level of sub programs.

Whereas, the focus of Object Oriented Programming is to break down the programming task in to objects, which then enclose data and methods. This programming is thought to be more pliable in comparison to structured programming. This is because OOP distinguishes a program in to a network of sub programs instead of structuring the system in to a hierarchy. Despite, structuring offering a lot of clarity, a little change to a very large structured system may cause a continuum of having to change multiple sub systems, which is not efficient.

Instructions

  • 1

    Structured Programming

    It is thought that this type of programming was initiated in the 1970s as a subset of imperative programming. The structured program is created from simple program flow structures. Make sure you know that these structures are hierarchically organized. These consist of selection, sequence and repetition. Sequence is an order of statements while selection suggests choosing a statement from a pile of statements depending on the present condition of the program.

    Moreover, repetition suggests carrying out a statement unless a particular state is achieved, for example using 'while' statements. Some well known structured programming languages are ALGOL, Pascal, Ada and PL/I.

  • 2

    Object Oriented Programming

    The main concentration in OOP is on mulling about the issue to be resolved in terms of real world elements. Moreover, representing the problem in terms of things and their behaviour is also vital. Classes are like templates or blueprints which accumulate identical things or items that are grouped together. Be aware of the fact that classes have properties known as attributes. Attributes are classified as instance and global variables. Ways in the classes define the attitude of these classes. Ways and attributes of classes are known as the members of the class and this is called an object.

Leave a Reply

Your email address will not be published. Required fields are marked *


one + 4 =