What is the difference between in the Function Oriented Programming and then Object-Oriented Programming :
In the Function Oriented Programming and then Object-Oriented Programming and obviously, there are many good points and bad points of both programmings.
I have listed a brief summary of the different facilities that the functionality programming and then object oriented programming provide us.
Function Oriented Programming:-
Programming Organization: Program is divided into small parts called functions.
Importance: Importance is not given to data but to functions.
Approach: Function Oriented Programming follows a top-down approach.
Access Specifiers: Function Oriented Programming dose not any access specifier.
Data Moving: Data can move freely from function to function in the system.
Maintainability: To add new data and function is not easy.
Data Access: function uses global data for sharing that can be accessed freely from function to function freely in the system.
Data Hiding: No data hiding is possible, hence security is not possible.
Overloading: Polymorphism is not possible.
Examples: C, Visual Basic, FORTRAN, Pascal.
Programming Organization: Program is divided into parts called objects.
Importance: Importance is given to the data rather than procedures.
Approach: Object-oriented programming follows a bottom-up approach.
Access Specifiers: Has three access specifiers, namely:- Public, Private, Protected.
Data Moving: Object can move and communicate with each other.
Maintainability: Provides an easy way to add new data and function.
Data Access: Object uses local data and can be accessed in a controlled manner.
Data Hiding: Provides data hiding, hence secured programming is possible.
Overloading: Ploymarphism is possible.
Exmaples: C++, JAVA, VB.NET, C#.NET.