1. Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423 603
(An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’Grade Accredited, ISO 9001:2015 Certified
Department of Computer Engineering
(NBA Accredited)
Prof. V.N.Nirgude
Assistant Professor
E-mail
:[email protected]
Contact No: 9975240215
Subject- Object Oriented Programming (CO212)
Unit 1 – Fundamentals of OOP
Topic –1.2 Need of Object-Oriented Programming
2. Need of Object Oriented Programming
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 2
Why Do We Need Object‐Oriented Programming?
• Object Oriented Programming was developed because limitations
were discovered in earlier approaches to programming.
• To appreciate what OOP does, we need to understand what
limitations are there in earlier programming and how they differ from
traditional programming languages.
3. POP Vs OOP
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 3
Procedure Oriented Programming Object Oriented Programming
• In POP, program is divided into small
parts called functions.
• In OOP, program is divided into
parts called objects.
• POP does not have any access specifier. • OOP has access specifiers named Public,
Private, Protected, etc
• POP does not have any proper way for hiding data
so it is less secure
• OOP provides Data Hiding so provides
more
security
• In POP,Overloading is not possible. • In OOP, overloading is possible in the
form of Function Overloading and Operator
Overloading.
• In POP, most function uses Global data
for sharing that can be accessed freely from
function to function in the system.
• In OOP, data can not move easily from
function to function, it can be kept public or
private so we can control the access of data.
• Example of POP are : C, VB, FORTRAN,
Pascal
• Example of OOP are : C++, JAVA, VB.NET,
C#.NET.
4. Features of OOP
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 4
• Data binding
• Class & Object
• Message passing
• Encapsulation
• Inheritance
• Polymorphism
• Abstraction
• Method overloading
• Method overriding
• Exception handling
(Due to these all features provided by OOP it makes OOP as best programming approach)