Related with the real life objects and their properties. OOP Concepts:
1. Class and Objects 2. Data abstraction 3. Encapsulation 4. Polymorphism 5. Inheritance
Related with the conventional style. This approach is also known as the top-down approach. In this approach, a program is divided into functions that perform specific tasks. This approach is mainly used for medium-sized applications. Data is global, and all the functions can access global data. The basic drawback of the procedural programming approach is that data is not secured because data is global and can be accessed by any function. Program control flow is achieved through function calls and go to statements.
Difference between OOP and POP:
|Object oriented.||Structure oriented.|
|Program is divided into objects.||Program is divided into functions.|
|Bottom-up approach.||Top-down approach.|
|Inheritance property is used.||Inheritance is not allowed.|
|It uses access specifier.||It doesn’t use access specifier.|
|Encapsulation is used to hide the data.||No data hiding.|
|Concept of virtual function.||No virtual function.|
|C++, Java.||C, Pascal.|
- Difference between CPU and GPU
- What's difference between MMU and MPU?
- Difference between TDM and FDM
- Difference between C and C++
- Difference between CD and DVD
- Difference Between SEO and SEM
- Difference between LAN and MAN
- What is the difference between GUI and CUI?
- Difference between CRT and LCD
- Difference between PNG and GIF
- Difference between 1G and 2G
- Difference between Tor and VPN
- Difference between USB 2.0 and USB 3.0
- Difference between 4G and 5G
- Difference between LAN and WAN
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : Santosh Kumar 7