What is the difference between procedure -oriented language
and object oriented language?
Answer Posted / kashmir singh
Procedure Oriented Programming (POP)
1. Main program is divided into small parts depending on
the functions.
2. The Different part of the program connects with each
other by parameter passing & using operating system.
3. Every function contains different data.
4. Functions get more importance than data in program.
5. Most of the functions use global data.
6. Same data may be transfer from one function to another
7. There is no perfect way for data hiding.
8. Functions communicate with other functions maintaining
as usual rules.
9. More data or functions can not be added with program if
necessary. For this purpose full program need to be change.
10. To add new data in program user should be ensure that
function allows it.
11. Top down process is followed for program design.
12. Example: Pascal, Fortran
Object Oriented Programming (OOP)
1. Main program is divided into small object depending on
the problem.
2. Functions of object linked with object using message
passing.
3. Data & functions of each individual object act like a
single unit.
4. Data gets more importance than functions in program.
5. Each object controls its own data.
6. Data does not possible transfer from one object to
another.
7. Data hiding possible in OOP which prevent illegal
access of function from outside of it. This is one of the
best advantages of OOP also.
8. One object link with other using the message passing.
9. More data or functions can be added with program if
necessary. For this purpose full program need not to be
change.
10. Message passing ensure the permission of accessing
member of an object from other object.
11. Bottom up process is followed for program design.
12. Example: C++, Java.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
will it allow to add same value in HashMap class.
How to use string functions in QTP?give some examples
what is apt_dump_score in datastage where it is useful
suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?
how to stop execution of step 3 in a job mainframe
if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fit" instead of the number and for the multiples of five print "Bit". For numbers which are multiples of both three and five print "FitBit".
how many types of operating system are avaliable?
how can i create report in abap to insert data in table pa0002 using insert command
Which language they use during interview?
they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?
how to convert the data from HTML file to SAS dataset?
Difference between debugging, running, executing of an application
WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.
Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.