Professional Documents
Culture Documents
Object Oriented Programming Using C++
Object Oriented Programming Using C++
Object Oriented Programming Using C++
using C++
- Ms. Salima Khatib
- Lecturer (Information Technology)
Procedure Oriented Language
• Object-oriented
programming (OOP) is
a programming language based on
the concept of "objects", which can
contain data, in the form
of fields (often known
as attributes or properties), and code,
in the form of procedures (often
known as methods).
• A feature of objects is that an object's
own procedures can access and often
modify the data fields of itself.
Procedure Oriented Language Object – Oriented Language
In procedural programming, program is divided into In object -oriented programming, program is divided into
small parts called functions. small parts called objects.
Procedural Oriented Language follows top down Object Oriented Programming follows Bottom up
approach approach
There is no access specifier in procedural Object oriented programming have access specifiers like
programming. 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 way Object oriented programming provides data hiding so it
for hiding data, so it is less secure. is more secure.
Procedural programming is based on unreal world. Object oriented programming is based on real world.
Examples: C, FORTRAN, Pascal, Basic etc. Examples: C++, Java, Python, C# etc.