2. In Pop Top down approach is use in program design.
In oop bottom up approach use in program design.
To add new data and function in pop is not so easy.
example:C requires all the variables to be defined at the starting of a scope.
Oop provide easy way to add new data and function. we can add data member anywhere in program
example:C++ allows the declaration of variable anywhere in the scope i.e. at time of its First use.
3/10
3. In pop No access specifiers are used.
example: In structure all the members are public.
In oop Public,Private,protected Access specifiers are used.
example: in class data is private & member function is public
#include<iostream.h>
class a
{
private:
data
public:
member function
};
4/10
4. In POP, 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.
example: in class the data member declared in private mode are only access
through it’s member function.
5/10
5. POP does not have any proper way for data hiding.
example: in structure data are declared in public mode so it is less secure.
Oop provides data hiding, so it is more secure.
example: data member declare in private are not accessible outside class.
#Include<iostrean.h>
class a
{
int a;
void read();
public:
Void update();
void write();
};
int main(){
a ob;
ob.read(); //object can not access ,private member
}
6/10
6. Pop program is divided into small parts called function.
Oop program is divided into small part called object.
In POP, Importance is not given to data but to functions as well as sequence of actions to be
done
In OOP, Importance is given to the data rather than procedures or functions because it works as
a real world.
7/10
7. In pop overloading is not possible.
In oop overloading is possible in the form of function overloading
& operator overloading.
example: overloaded add().
//declaration
int add(int a,int b);
int add(int a,int b,int c);
double add(double x,double y);
double add(double p,double q);
8/10
8. EXAMPLE OF POP:
i. C
ii. VB
iii. FORTRAN
iv. PASCAL
EXAMPLE OF OOP:
i. C++,
ii. JAVA,
iii. VB.NET,
iv. C#.NET.
9/10