Ride

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 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