Basic Concepts of OOP

OOP is a programming paradigm that uses "objects" and their interactions to design applications and computer programs. It has been developed with a view to overcome the drawbacks of conventional programming approaches. The object oriented programming helps to make program easier by dividing it into number of objects. In object oriented programming, data are not loosely attached. That is, the data can flow easily from one function to another. It allows the user to easily modify and reuse the code.While implementing an abstraction of a real world entity into software, all its physical characteristics are depicted through data items and its functionality through methods. Some important OOP concepts are data abstraction, data encapsulation, modularity, inheritance and polymorphism.

Abstraction represents only the essential features of an object; whereas, Eencapsulation involves wrapping up of data and functions into a single unit. Modularity is the property of a system that has been decomposed into a set of cohesive and loosely coupled modules. Inheritance is the capability of a class of things to derive capabilities or properties from another class.

To Access the full content, Please Purchase

  • Q1

    Operator + (plus) can be used to add integers, floating point number and as well as to concatenate strings. What does it represent?

    Marks:1
    Answer:

    It shows polymorphism that how the same function can have different forms in different context.

    View Answer
  • Q2

    Which concept of OOP hides complexity?

    Marks:1
    Answer:

    Data Abstraction

    View Answer
  • Q3

    What is Modularity?

    Marks:1
    Answer:

    Modularity is the property of a system that has been decomposed into a set of cohesive and loosely coupled modules.

    View Answer
  • Q4

    Define Encapsulation.

    Marks:1
    Answer:

    Encapsulation is wrapping up data and functions together in a single unit.

    View Answer
  • Q5

    Name the basic concepts of OOP.

    Marks:1
    Answer:

    Basic concepts of OOP are:
    1. Data abstraction
    2. Encapsulation

    3. Modularity
    4. Inheritance
    5. Polymophism

    View Answer