MdIbrahimKhalil11
3,171 views
8 slides
Feb 23, 2018
Slide 1 of 8
1
2
3
4
5
6
7
8
About This Presentation
Compare between Procedure Oriented Programming(POP) and Object Oriented Programming(OOP)
Size: 75.03 KB
Language: en
Added: Feb 23, 2018
Slides: 8 pages
Slide Content
Compare between Procedure Oriented Programming( p op) & Object Oriented Programming( oop ) Prepared By . Md Ibrahim Khalil. Islamic University ,Bangladesh. Department of Electrical and Electronic Engineering.
DIFFERENCE BETWEEN POP AND OOP FOCUS Procedure Oriented Programming(POP) Object Oriented Programming(OOP) Stands for It stands for ‘Procedural Orientated Programming’. It stands for ‘Object Orientated Programming’. Programs In POP, program is divided into small parts called functions . In OOP, program is divided into parts called objects . Data Moving In POP, Data can move freely from function to function in the system. In OOP, objects can move and communicate with each other through member functions. Data Every function contains different data. The data and functions of each individual object act like a single unit.
FOCUS Procedure Oriented Programming(POP) Object Oriented Programming(OOP) Data control Most of the functions use global data. Each object controls its own data. Transfer Same data may be transferable from one function to another. Data does not possibly transfer from one object to another. Data Access 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, i t can be kept public or private so we can control the access of data. Data hiding POP does not have any proper way for hiding data so it is less secure . OOP provides data hiding so provides more security .
Procedure Oriented Programming(POP) Object Oriented Programming(OOP) Communication Functions communicate with other functions maintaining as usual rules. One object links with the other using the message passing. Addition More data or functions cannot be added with the program if necessary. For this purpose, the full program needs to be change . To add new data and function in POP is not so easy. More data or functions can be added with the program if necessary. For this purpose, the full program need not be changed . OOP provides an easy way to add new data and function. Permission To add new data in program, the user should ensure that the function allows it. Message passing ensures the permission of accessing member of an object from another object.
Procedure Oriented Programming(POP) Object Oriented Programming(OOP) Importance Functions or algorithms get more importance than data in program. Data gets more importance than functions in program. Overloading Overloading is not possible. Overloading is possible in the form of Function Overloading and Operator Overloading. Data Moving In POP, Data can move freely from function to function in the system. In OOP, objects can move and communicate with each other through member functions.
FOCUS Procedure Oriented Programming(POP) Object Oriented Programming(OOP) Process POP follows Top Down approach . OOP follows Bottom Up approach . Access Specifiers No access specifiers are used. Public, private, and protected access specifiers are used. Examples Example of POP are : C, VB, FORTRAN, Pascal. Example of OOP are : C++, JAVA, VB.NET, C#.NET.