Hello friends, in this post today, we will learn about what is the Difference between procedure and object oriented programming in c++. so let's start....
Object Oriented Programming is programming paradigm that represents concepts as objects that has data fields and associated procedures known as methods.
Procedure Oriented Programming (POP)
1. Emphasis is on doing things not on data, means it is function driven.
2. Main focus is on the function and procedures that operate on data.
3. Top Down approach in program design.
4. Large programs are divided programs known as functions into smaller.
5. Most of the functions share global data.
6. Data moves openly in the system from one function to another function.
7. Adding of data and function is difficult.
8. We cannot declare namespace directly.
9. Concepts like inheritance, polymorphism, data encapsulation, abstraction, access specifiers are not available.
10. Examples: C, Fortran, Pascal, etc…
procedure oriented programming |
Object Oriented Programming (OOP)
1. Emphasis is on data rather than procedure, means object driven.
2. Main focus is on the data that is being operated.
3. Bottom Up approach in program design.
4. Large programs are divided into classes and objects.
5. Data is structure tied together with function in the Data.
6. Data is hidden and cannot be accessed by external Functions.
7. Adding of data and function is easy.
8. We can use name space directly, Ex: using namespace std;
9. Concepts like inheritance, polymorphism, data encapsulation, abstraction, access specifiers are available and can be used easily
10. Examples: C++, Java, C#, etc…
object oriented programming |
I hope that whatever information I have given in this post today, you have liked it and you have understood it.so keep learning and wait for the next post that will help you to increase your knowledge.
Thank you so much for reading. And take care about yourself and your family.
Comments
Post a Comment