What are the differences between procedure-oriented
languages and object-oriented languages?

Answer Posted / kumar

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 ?    114 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we check the value of a given variable is alphanumeric?

536


What is the default session time in php?

527


Can php use gettext?

557


What is slim framework?

498


Write a program to show the joining of two strings in php?

523






What is escape data in php?

522


What are examples of dependent variables?

536


How to access a global variable inside a function?

532


Tell me how comparison of objects is done in php5?

513


Is php used for frontend or backend?

528


What is the difference between php traits vs interfaces?

483


How to create and destroy cookies in php?

496


What is the function of mysql_real_escape_string in php?

475


How to get the ip address of the client?

8695


What is difference between static and constant?

530