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
how do you generate source code for the automatic generation for receipt number
Write a shell program. Enter number of days from keyboard. Find out the number of years, month and days it contains
how to add a new table with variables and thier values into a imported file uisng proc import?
V2 SOLUTIONS APTI paper is very easy there are 3 sections 1'st is quant problem on age train traveling speed is given length of train is given we have to find out length of bridge then prob on calender one date is given on Friday hv to find out day of othe date ans is Friday then there was 1 prob on percentage which was very easy ans was 21340 then 2’nd section was english grammer had has been being like that hv to fill in the blanks was very wasy then last section was find relative words there was five Q 1 pant ANS:-breath 2inquire ans :- ask And 3 more out of that 1 ‘s ans was:- body 4 And others ans was :-through THEN THEY HAVE GD There was three topics 1 should we allow india’s talent to go to abrod 2 protest against seperate state is justify 3 inturuption of politics in cricket Thats all guys i cleared both the rounds now preparing 4 interview best of luck
8.In DSP,Define Signal and System?and various type of signals.
You are given some denominations of coins in an array (int denom[])and infinite supply of all of them. Given an amount (int amount), find the minimum number of coins required to get the exact amount. What is the method called?
In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?
What is the merger sort principle and its time complexity.
What is the use of sas software? Is sas and sap are different?
how many types of bytes are there???
what is best way to create a Thread class & why?
iam confused to choose among testing, .net and java can anybody help me????????
pleasew define carrier scope in abap (sap).
5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming