What are the differences between procedure-oriented
languages and object-oriented languages?
Answer Posted / sourabh
In procedural programming the main emphasis is on procedure
while in object oriented the data is important part. on the
same hand data is more secured in object oriented program.
-----------------------------------------------------------
Procedure Oriented Language:
---------------------------
PO Language is fully concentrates on
Procedures/functions/methods. It normally works as a
sequence of actions as seen in flowchart or in any
algorithm. It follows top-down approach. It totally focuses
on methods and not the data which is utilized by methods.
In PO languages if data is used by many methods then its
declared as global data but there is a problem if we do
that, what is that, if we forgot or by mistake if we
consume that data in some other method than it comes with
problem. Mostly these scenarios happen in large systems.
Example: COBOL, PASCAL, C, FORTRAN etc.
Object Oriented Language:
------------------------
OO concepts says it think about data and bind that data and
methods those are manipulating that data into one entity
known as object and then utilize that object into system.
Example: C++, Java, C#, VB.Net etc.
There are some fundamental concepts of OO Language which a
language has to follow to be a truly OO language.
• OBJECT
• CLASS
• ABSTRACTION
• ENCAPSULATION
• DATA HIDING / INFORMATION HIDING
• INHERITANCE
• POLYMORPHISM
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
Tell me can the value of a constant change during the script's execution?
Which is a perfect example of runtime polymorphism?
How do you count numbers in php?
What is framework in php?
How to pass variables and data from php to javascript?
What is the value for this auto incremented field user_pri_id?
What is the advantage of runtime polymorphism?
What are the different types of PHP arrays?
How do I debug php?
What is difference between isset and empty in php?
What is get and post method in php?
What is design pattern? Explain all including singleton pattern?
How do we get the current session id?
How to get number of elements in an array?
What are the ways to include file in php?