using namespace std;
void person :: getdata(void)
void person :: display(void)
Difference between object-oriented programming (OOP) and procedure-oriented programming (POP) :
|Emphasis on doing things (procedure).
||Emphasis on data rather than procedure.
|Programs are divided into what are known as functions.
||Programs are divided into what are known as objects.
|Data move openly around the system from function to function.
||Data is hidden and cannot be access by external functions.
|Employs top down approach in the program design.
||Employs bottom up approach in program design.