answersLogoWhite

0


Best Answer

Procedural programming can sometimes be used as a synonym for imperative programming. To a programming paradigm based upon the concept of the procedure call. Procedures, also known as routines, subroutines, methods, or functions (not to be confused with mathematical functions, but similar to those used in functional programming) simply contain a series of computational steps to be carried out. Any given procedure might be called at any point during a program's execution, including by other procedures or itself. The important features of Procedural Programming. 1. Programs are organized in the form of subroutines and all data items are global. 2. Program controls are through jump(goto) and calls to subroutines 3. Subroutines are abstracted to avoid repetitions. 4. Suitable for medium sized software application 5. Difficult to maintain and enhance the program code. K E Narayana

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Procedural programming can be thought of as a series of actions or procedures that can be performed upon a given set of data. Even with OOP we still use procedural programming methods, but OOP allows us to extend the way in which the data is physically stored, manipulated and, more importantly, validated.

With procedural programming alone, data would be passed from one function to another in order to manipulate it. Passing data around like this is cumbersome at best, but the data itself is fully exposed to rogue manipulation which could invalidate the data at any time. Structured programming improves things by allowing the procedures themselves to be organised in a more systematic fashion, but the data itself is still subject to undue exposure.

OOP basically combines a set of data with the procedures (or methods) that can physically act upon that data. In essence an object is a data structure with built-in methods, but we can limit the amount of exposure we give the data by creating a controlled interface to that data. In general, the interface will include mutators to set the data, operations to manipulate the data and accessors to retrieve the data. The data itself can be safely hidden from view and the object's methods ensure the data is modified in a controlled manner, thus ensuring its integrity. The flexibility of an object is such that we can expose as much or as little of the data and its interface as we desire.

As with structures, objects can be combined to create highly-complex data structures. But unlike structures, each object takes care of its own data. Such structures would be difficult if not impossible to implement with procedural programming alone.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Object-oriented programming has most, or all, of the features found in procedural programming. Apart from that, in object-oriented programming you create classes, and you create objects based on the classes. Classes (and their objects) have fields (variables defined at the class level) and methods (functions defined at the class level). Some of the features found in most object-oriented languages are encapsulation (which allows hiding the internal implementation of a class), inheritance (which allows one class to reuse the definition of another class, and add additional features), and polymorphism (which allows different classes to have methods with the same name). All these features are NOT used in pure procedural programming.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between object-oriented and procedural programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Short note on structural programming and procedural programming?

There is no difference between procedural programing language & structure programing language.


Difference between procedural programming and modular programming?

Procedural programming is a computer programming technique in which the program is divided into modules like function or subroutine or procedure or subprograms, where as ... "Modular Programming" is the act of designing and writing programs as interactions among functions that each perform a single well-defined function, and which have minimal side-effect interaction between them. Put differently, the content of each function is cohesive, and there is low coupling between functions as happens in procedural programming.


What is the difference structured programming language and java?

There is no difference between procedural programing language & structure programing language


What is the difference between procedural and nonprocedural dml language?

rocedural languages are used in the traditional programming that is based on algorithms or a logical step-by-step process for solving a problem.A procedural programming language provides a programmer a means to define precisely each step in the performance of a task Non-procedural programming languages allow users and professional programmers to specify the results they want without specifying how to solve the problem. examples are FORTRAN,C++,COBOL,ALGOL etcOR we can put it this way:Procedural language determines WHAT & HOW a process should be done, Non-procedural language is concerned with the WHAT not the HOW. Non-proc languages are those languages where you specify what conditions the answer should satisfy, but not how to obtain it.


What is the difference between Procedural programming and Markup?

The way I understand it Markup Language is used for adding extra features, like structure or presentation of the text, objects etc.Programming language is used for creating programs.Basically in the example of the car, markup languagewould be the tools used to create the body and design, and programming language - the tools used to build an engine.

Related questions

Short note on structural programming and procedural programming?

There is no difference between procedural programing language & structure programing language.


What is the difference between program language and procedural language?

programming language is of two type 1. procedural programming language 2.non procrdural programming language .. ----non procedural programming language means that which relates with the real world.. for example-oops oops is a non procedural programming language because it relates to the object and object relate to the natural or real world where as that languge which does not belong to the real world is known as procedural language


What is the similarities between Procedural programming and visual programming?

it is a load of rubbrish


Difference between procedural programming and modular programming?

Procedural programming is a computer programming technique in which the program is divided into modules like function or subroutine or procedure or subprograms, where as ... "Modular Programming" is the act of designing and writing programs as interactions among functions that each perform a single well-defined function, and which have minimal side-effect interaction between them. Put differently, the content of each function is cohesive, and there is low coupling between functions as happens in procedural programming.


What is the difference between declarative and procedural questions?

procedural asks you to solve.


What is the difference between Object-oriented software engineering and software engineering?

Object-oriented programming is just one possible methodology in the field of software engineering. It is a type of software engineering.See the related questions for a definition of object-oriented programming.


Difference between procedural and nonprocedural language?

Non.


What is the difference structured programming language and java?

There is no difference between procedural programing language & structure programing language


Main deffrent between c and cpp?

C is a procedural programming language, while C++ is a multi-paradigm programming language that supports both procedural and object-oriented programming. C++ has additional features such as classes, inheritance, and polymorphism that allow for more flexible and modular code design compared to C.


Difference between conventional programming and object oriented programming?

diff between oops and conventional programming


What Is the difference between procedural and nonprocedural DMLs?

One has non informs of it


What is the difference between procedural and non-procedural languages?

AnswerProcedural languages are used in the traditional programming that is based on algorithms or a logical step-by-step process for solving a problem.A procedural programming language provides a programmer a means to define precisely each step in the performance of a task Non-procedural programming languages allow users and professional programmers to specify the results they want without specifying how to solve the problem. examples are FORTRAN,C++,COBOL,ALGOL etcOR we can put it this way:Procedural language determines WHAT & HOW a process should be done, Non-procedural language is concerned with the WHAT not the HOW. Non-proc languages are those languages where you specify what conditions the answer should satisfy, but not how to obtain it.