0% found this document useful (0 votes)
33 views1 page

Difference Between Procedural and Object Oriented Programming

The document compares procedural and object-oriented programming, noting their differences in how programs are divided, approaches, access specifiers, adding new data and functions, data hiding, overloading, importance of data vs functions, real world basis, and example languages.

Uploaded by

Pankaj
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)
33 views1 page

Difference Between Procedural and Object Oriented Programming

The document compares procedural and object-oriented programming, noting their differences in how programs are divided, approaches, access specifiers, adding new data and functions, data hiding, overloading, importance of data vs functions, real world basis, and example languages.

Uploaded by

Pankaj
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/ 1

1. Difference between procedural and Object oriented Programming.

Procedural Oriented Programming Object Oriented Programming

In procedural programming, program is divided into In object oriented programming, program is


small parts called functions. divided into small parts called objects.

Procedural programming follows top down Object oriented programming follows bottom up


approach. approach.

There is no access specifier in procedural Object oriented programming have access


programming. specifiers like private, public, protected etc.

Adding new data and function is not easy. Adding new data and function is easy.

Procedural programming does not have any proper Object oriented programming provides data
way for hiding data so it is less secure. hiding so it is more secure.

In procedural programming, overloading is not Overloading is possible in object oriented


possible. programming.

In procedural programming, function is more In object oriented programming, data is more


important than data. important than function.

Object oriented programming is based on real


Procedural programming is based on unreal world. world.

Examples: C, FORTRAN, Pascal, Basic etc. Examples: C++, Java, Python, C# etc.

You might also like