Chapter One: Introduction to Object Oriented Programming
A Look at Procedure-Oriented Programming
Concept of Object Oriented Paradigm
Features of OOP
Benefits of OOP
Application of OOP
Object Oriented Programming
Object oriented programming (OOP) is a programming model that relies on the concept
of classes and objects.
ke ke garcha ta OOP le
The major motivating factor of OOP is to eliminate some of the flaws encountered in
POP (Procedure-oriented Programming) approach.
Flaws in POP- No concept of Data hiding & security; Friend functions, Virtual class
Programs are divided into objects.
Emphasis is on data rather than procedure (logic).
OOP treats data as a critical element in the program and does not allow it to flow freely
around the system.
Data is hidden and cannot be accessed by external functions.
Features of OOP
1. Object
2. Class
3. Abstraction
4. Encapsulation
5. Inheritance
6. Polymorphism
7. Data hiding / Information hiding