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
- Difference Between SEO and SEM
- Difference between PNG and GIF
- Difference between LAN and WAN
- What's difference between MMU and MPU?
- Difference between JSP and ASP
- Difference between MAN and WAN
- Difference Between BFS and DFS
- Difference between 1G and 2G
- Difference between H.323 and SIP
- Difference between TDM and FDM
- Difference between ELT and ETL
- What is the difference between GUI and CUI?
- Difference between CRT and LCD
- Difference between WCF and Web API
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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