Difference Between OOP And POP || Different Between C and C++



DIFFERENCE BETWEEN OOP AND POP



Definition of OOP:-
 

                                    Oops is stands for object oriented programming. It is a programming language model organized around objects. One of the great benefits of oop is that of scalability, with objects and definition having no finite limitation. In oop, program is divided into parts called objects. oop use object to call the member function of the class. In oop data cannot move easily from function to function, it can be kept public or private so we can control the access of data.


Definition of POP:-

                                    Pop is stand for procedure oriented programming. A program in a procedural language is a list of instruction where each statement tells the computer to do something. It focuses on procedure (function) & algorithm is needed to perform thee derived computation.
When program become larger, it is divided into function & each function has clearly defined purpose.in procedural language most of the function share global data and data moves openly around the system from function to function


Difference between oop and pop:-




Procedural oriented programming
Object oriented programming
Divided into
In pop, program is divided into small parts called functions.
In oop, program is divided into parts called objects.

Importance

In pop importance is not given to data but to function as well as sequence of action to be done.

In oop importance is given to the data rather than procedures or functions because it works as a real word.
Approach
Pop follows Top Down Approach.
Oops follows Bottom Up Approach
Access specifiers
Pop does not have any access specifier.
Oop has access specifier named public, private, protected, etc.
Data moving
In pop, data can moved freely from function to function in the program.
In oop, objects can moved and communicated with each other through member functions.
Expansion
To add new data and function in pop is not so easy.
Oop provides an easy way to add new data and function.
Data Access
In pop, most function uses global data for sharing that can be accessed freely from function to function in the program.
In oop, data cannot move easily from function to function, it 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 mare security.
Overloading


In pop, overloading is not possible


In oop, overloading is possible in the form of function overloading and operator overloading.
Friend function
No concept of friend function
Classes or function can become a friend of another class with the keyword “friend”.
Virtual classes/function
No concept of virtual classes/function
Concept of virtual classes/function appear during inheritance.
Inheritance


There is no provision of inheritance.
Inheritance achieved in three modes public private and protected.


Examples
Example of pop are:-C, VB, FORTRAN, Pascal
Example of oop are:-C++, JAVA, VB.NET, C#.NET.





To learn more you can just click the below topics:

C++

INTRODUCTION OF C++ || Definition of C++
Brief history of C++ || history of C++
Features of C++ || why we use C++ || concept of C++
Concept of OOP || What is OOP || Object oriented programming language
Characteristics of C++
Interesting fact about C++ || Top 10 interesting fact about C++
C++ Program Structure
Writing first program in C++ || how to write hello world in C++
Basic Data Type And Variable In C++
Identifier in C++
Keywords in C++
Token in C++
Comment in C++
Constant in C++
Modifier in C++
Taking User Input in C++ | User input in C++
Input Output Operator In C++
C++ Operators | Operator in programming language
How to Add two number in C++
Polymorphism in C++
Compile Time Polymorphism in C++
Function overloading in C++
Operator Overloading in C++
What are Control Structures in C++ || Understanding Control Structures in C++ | How to use if, else, switch
What are Functions and Recursion in C++ | How to Defining and Calling Functions

Class in C++
Object in C++

Data Science

The History and Evolution of Data Science
Scope of Data Science
Why learn Data Science? | Why Data Science?
Impact of Data Science
The Importance of Data in Science | Introduction to Data Science
What is Data Analysis | Data Analyst for Beginners

Algorithm

Why algorithm | The Importance of Algorithms in Modern Technology

Tech to know

Which is better | BSc in Computer Science or BTech?

Post a Comment

Ask any query by comments

Previous Post Next Post