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


Please Help Members By Posting Answers For Below Questions

Tell me what are the correct and the most two common way to start and finish a php block of code?

531


How to pass variables and data from php to javascript?

511


How do I find out the number of parameters passed into function9?

543


What is __ construct in php?

542


can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????

1324






What is constructors and destructors?

537


What is the default session time in php?

530


Why echo is faster than print in php?

519


Is php faster than nodejs?

491


How long do php sessions last?

562


Is gender a dependent variable?

509


What is singleton pattern in php?

486


What is a controller in programming?

496


Are php session secure?

530


Explain what are the three classes of errors that can occur in php?

526