Sunday, August 2, 2009

What is Object Oriented Programming system in C++ / Java? What is the difference between OOPS and POL?

POL stands for procedure oriented languages. Plz help me to knoe the definitions of OOP %26amp; POL with appropiate difference ?

What is Object Oriented Programming system in C++ / Java? What is the difference between OOPS and POL?
in pol..





u hav data in global place or as a global var.


n then we start writin functions which operate on that data.


if somethin in structure of data changes we have 2 change all functions which op on that data.


n data as a global var can b changed anywhere frm prog. may result in inconsistent result if complextiy is high n dignosis became impossible.


data insecure....





but in oops:





wat is imp is data, data security


we first define data , data structure in a class n define d set of methods which can operate on that data.


data is not global now.


data has its manupulatin methods associated with it n no other method / function can access or modify that data n hence


secured.


has more real world meanin..


n easy 2 program in case of event driven programin.n in case of very complex projects..





sorry if not upto d mark but tried up2 my level
Reply:OOPS-The program is basically triggered by the user when he does an action on an object...example you goto a sign in page...you give ur username and password you click on submit it logs in and if you click on cancel the page is reset and your action cancelled...so for the same page multiple actions are possible which depends on what you do...this is called object oriented program which is user friendly


POL-procedure oriented language...here there is certain procedure defined and the user has to progress only in that direction nothing else is possible


Hope you got it!!
Reply:Here is my answer to that question in a homework assignment - it got full credit:





3.Procedural and event-driven programming differs mainly in how their flow-control approaches are handled. According to the text: the control flow of event-driven programs are mostly decidied by external events, such as the click of a button. In procedural programming, the program specifies the sequence of all operations in a step-by-setp manner, and the order of the program statements determines how the computer program will carry out a task.





OOP is a programming approach that empasizes working with objects and buiding programs by defining categories of objects that share common characteristics.
Reply:oops is the name given to the theory in which data is the most the imp thing to be taken care of rather then the procedure to be followed on it... data hiding , data encapsulation r the main characteristics of it... u can recognize a oops supporting programming language by classes and object in it


No comments:

Post a Comment