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. It is a Top-Down approach in program design.
4. Large programs are divided into smaller programs known as functions.
5. Most of the functions share global data.
6. Data moves openly in the system from one function to another function.
7. Data and function are difficult to add.
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.
Object-Oriented Programming
1. Emphasis is on data rather than procedure, means object driven.
2. Main focus is on data that is being operated.
3. Bottom-up approach in program design.
4. A large program is divided into classes and objects.
5. Data is tied together with function in the data structure.
6. Data is hidden and cannot be accessed by external functions.
7. Adding of the data and functions is easy.
8. We can use namespace directly.
9. Concepts like inheritance, polymorphism, data encapsulation, abstraction, access specifiers are available.
10. Examples: C++, Java, C#,etc.
Post a Comment