Skip to main content

Characteristics of Object-Oriented Programming( OOP ) and Procedure Oriented Programming ( POP )




Procedure Oriented Programming
Object-Oriented Programming
Divided Into
In POP, the program is divided into small parts called functions.
In OOP, the program is divided into parts called objects.
Importance
In POP, Importance is not given to data but to functions as well
 the sequence of actions to be done.
In OOP, Importance is given to the data rather than procedures or functions because it works in the real world.
Importance
In POP, Importance is not given to functions.
In OOP, Importance is given to the data.
Approach
POP follows a Top-Down approach.
OOP follows the Bottom-Up approach.
Access Specifiers
POP does not have any access specifier.
OOP has access specifiers named Public, Private, Protected, etc.
Data Moving
In POP, Data can move freely from function to function in the system.
In OOP, objects can communicate with each other and pass data through member functions.
Expansion
 Adding new data and functions in POP is not so easy.
OOP provides an easy way to add new data and functions.
Data Access
In POP, the Most function uses Global data for sharing that can be accessed freely from function to function in the system.
In OOP, data can not 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 more security.
Examples
Examples of POP are C, VB, FORTRAN, Pascal.
Examples of OOP are C++, JAVA, VB.NET, C#.NET.

Comments

Popular posts from this blog

Steps to remove google accounts from Computer

Open Google . You will see a round shaped picture of google account picture in top right corner as marked in below picture Click on it. Click on sign out of all accounts Click on Sign In at the top right corner as shown in picture below. Click on it. You will see following screen. Select your desired account from it and sign in . Reopen your form by clicking link provided to you, It will be open now.

Steps of splitting pdf files

Goto https://www.ilovepdf.com/split_pdf Click on Select PDF File. Upload your pdf file here. Select Extract Pages from right menu. Click on Split pdf button and wait for the procedure. Now Click on Download Split PDF and you will get a zip file in which there will be separate pdf.

Introduction to Object Oriented Programming ( OOP )

Object-Oriented Programming Object Oriented programming is a programing model that is based upon data and object. Classes   Classes are the blueprint of objects. Now you will think about what actually blueprints are. Blueprints are actually a design or plan to build something. Let's take an example like the map is detail plan of house classes are detail plan in  Object-Oriented programming. let's give you an example of a class on java so that you can unferstand. public class Car {          int horsePower;     String name;     String color;      String Company; } public class Sample {     public static void main(String[] args) {         Car car;         Car mehran;             } } Class name always start with capital letters . It is a good practice to name classes .  We will later learn how this is good. So in the above class Car ...