Suggest a new Definition

    Proposed definitions will be considered for inclusion in the Economictimes.com

    What is 'Object Oriented Programming'


    Definition: OOP is an object-oriented programming technique that combines data and instructions for processing that data into an object that can be used within the program. Object-oriented programming provides concepts that help modelling complicated systems of real world into manageable software solutions.

    Description: OOP concepts are:

    1) Objects: Objects are structures that contain both data and procedures. For example, a student is an object which has name and age,

    2) Class: A class is a template that explains the details of an object,

    3) Inheritance: Inheritance is a technique to re-use existing code again and again. Class that is inherited is called base class and a class which it inherits is called derived class,

    4) Polymorphism: Polymorphism means many, which is requesting the same operation to perform differently,

    5) Abstractions: It refers to displaying only essential features of the application and covering the details, 6) Encapsulation: It means wrapping the data and functions together into a class.

    Examples of object-oriented languages are Java, C++, PHP, C, Python etc.

    Key features of object-oriented programming are:

    · better programming designs

    · emphasis on security and access

    · reduction code duplication

    · real world application is modelled well



    Advantages of OOPs over procedure-oriented programming (POP): With the help of OOPs, it will be easier for developing and maintaining the software compared to POP. It will be difficult for the procedure-oriented programming language when the code grows along with the growth of the project size. Data hiding is enabled in the OOPs whereas the global data could be accessed anywhere using the procedure-oriented programming language. So this process is risky. Simulating the real world event effectively is easier with OOPs. Thus, the real-word problem can be solved using this method. The procedure-oriented programming language is less effective compared to OOPs.

    Related News

    The Economic Times