0% found this document useful (0 votes)
66 views2 pages

Ride

POP is procedure-oriented and uses a top-down approach to divide a program into separate functions with individual data control, while OOP is object-oriented and uses a bottom-up approach to divide a program into objects that can inherit and reuse code through encapsulation and polymorphism.

Uploaded by

Sri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views2 pages

Ride

POP is procedure-oriented and uses a top-down approach to divide a program into separate functions with individual data control, while OOP is object-oriented and uses a bottom-up approach to divide a program into objects that can inherit and reuse code through encapsulation and polymorphism.

Uploaded by

Sri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Parameter

OOP POP
s

POP is structure or procedure-


Basic Definition OOP is object-oriented.
oriented.

The program is divided into The program is divided into


    Program Division
objects. functions.

     Approach Bottom-Up approach Top-down approach

Every function has different


Data in each object is controlled
    Data Control data, so there’s no control
on its own.
over it.

Object functions are linked Parts of a program are linked


  Entity Linkage
through message passing. through parameter passing.

Adding new data and functions Expanding data and function is


      Expansion
is easy. not easy.

Inheritance is supported in
   Inheritance three modes: public, private & Inheritance is not supported.
protected.

Access control is done with No access modifiers


   Access control
access modifiers. supported.

Data can be hidden using No data hiding. Data is


Data Hiding
Encapsulation. accessible globally.

Overloading functions,
Overloading or
constructors, and operators are Overloading is not possible.
Polymorphism
done.

Classes or functions can be


Friend function linked using the keyword No friend function.
“friend, only in C++.

Virtual classes or The virtual function appears


No virtual classes or functions.
functions during inheritance.

The existing code can be


  Code Reusability No code reusability.
reused.
Not suitable for solving big
Problem Solving Used for solving big problems.
problems.

  Example C++, JAVA, VB.NET, C#.NET. C, VB, FORTRAN, Pascal

You might also like