1 Questions From All Chapters
1 Questions From All Chapters
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