What is the difference between procedure -oriented language
and object oriented language?

Answer Posted / sandeep kumar l

pop divide the large task in to small tasks and then start
executing the task which is nothing but a function.what the
1st function execute can pass to 2nd one and it can do
it's operation an finally it can complete the task.so here
data is moving freely in all the functions where integrity
of data and uprightness of data is not at all possible.and
it is top to bottom approach.
eg:
consider an organisation knows as bank and they have close
all the accounts by the end of the month.so 1st person can
job is add all the credits and he send the same file to 2nd
person whose job is remove the debts and finally 2nd person
send the same file to 3rd one whose job is to close the
accounts .so,what else the previous person does can make
sense to next one in this data is freely moving through
out the task.
oops is quite opposite bootom to top approach what the 3rd
person do cannot know to 2nd & 1st person similarly what
the 2nd one does cannot know to the 1st one until and
unless he give the permission that respective cannot how
the work is done ;
eg:
10 cars
10 owners
only the owner who has the key can acess his own car .he
cannot do any other car.
similary making all of them together in to a single unit
and keeping the information hiding untill and unless u give
the permission other one won't access it.it can be possible
in oop by using acess specifiers knows as pulic and
private .in stead of function we use say object which has
state and behaviour (method)
exception handling can be done in oop which cannot be
stopped in pop.
security and reusabilityof code is done in oop through
method overloading and method overriding.which is not
possible in pop

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is best way to create a Thread class & why?

1830


What is %Type,%Rowtype?

2018


how to remove header and footer in jcl using sort utility

5334


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

1799


Find out the list of authorization objects which contains activity as a field? Thanks in advance.

1983


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

7515


is it acceptable if we declare multiple exceptions in same overridden method.

2349


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1690


is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...

1823


Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)

1942


What is autocall macro and how to create autocall macro? what is the use of it?

1712


What sysoption determines where the macro facility searches a specific catalog for complied macro?

1881


how many types of operating system are avaliable?

2046


in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?

1758


write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe

1768