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
A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.
if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids
How to print No.of.rows affected after updation using ADO.Net
what is woransient key word? how it is used in java
In project we have Documentation phase also,in that what is micro and macro designing?
Do not use more than 3 nested IF. Use Evaluate statement in case of more IF required. Please give a detail explantion besides readability and clarity for Evaluate stmt.
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...
What is the meaning of client-server application. The purpose of Client-Server Application. with description.
i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......
Given n red balls and m blue balls and some containers, how would you distribute those balls among the containers such that the probability of picking a red ball is maximized, assuming that the user randomly chooses a container and then randomly picks a ball from that.
what is the diffrence between software and hardware language?
Explain what is OOPS and its concepts?
Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)