answersLogoWhite

0

Procedural oriented programming generally consists of a main program line that executes and does whatever it's supposed to do (branching off statements, loops etc..). You could say it is very functionally oriented like C, Fortran.

OOP is more about the entities which perform the processes than about the processes themselves. This leads to encapsulation. For ex, if you want to design a procedural program that reads in a text file and inserts the data into a database, you would have a procedure that

1. Parses the text file according to what you want,

2. Construct the necessary queries for the database,

3. Establish a connection to the database and finally,

4. Perform the data insertion.

This in OOP would consist (off the top of my head) of 3 classes;

1. Parser class which gets the data out of the textfile.

2. The query builder which returns SQL queries.

3. A Database connector class which connects to the database and performs the queries.

Here we aren't concerned with the internals of the parser or query builder. All the connector cares about is that the parser returns a dataset in a specified format and that the querybuilder returns a set of appropriate queries given the dataset.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is C programming procedural or object oriented?

C is a weakly typed procedural programming language. For object oriented programming languages near C, you can look at ooc ( http://ooc-lang.org/ ), C++, D, and Java.


What are the primary methods of programming?

The two primary methods of programming are procedural and object-oriented.


Is java example of a procedural programming language?

No.Its purely object oriented programming language


Is c object oriented or object based?

C is a procedural programming language.


What are the drawbacks of procedure oriented programming languages?

Procedural programming is when an application executes a series of procedures. In procedural programming, the user is unable to choose what the program does next. In OOP (Object oriented), the user can click on any button they want, but in procedural, it just executed the pre-set procedures, then ends.


What are the shortcomings of oriented programming in java?

not much just gets messy and non-procedural


What are the limitation of structured programming?

By itself, structured programming does not support the notion of a function call. This is achieved through an extension of structured programming known as procedural programming. Object-oriented programming extends procedural programming such that data and the functions that operate upon the data can be encapsulated within an object.


Is encapsulation a characteristic of procedural or object oriented programming?

Encapsulation is one of the four pillars of object-oriented programming. The other three are inheritance, polymorphism and abstraction.


What are the limitations of structures?

By itself, structured programming does not support the notion of a function call. This is achieved through an extension of structured programming known as procedural programming. Object-oriented programming extends procedural programming such that data and the functions that operate upon the data can be encapsulated within an object.


How c plus plus is a procedure based language?

C is both. The characteristics of a procedural oriented language: assignment operators (:= in C) The characteristics of a structured programming language: block of codes ({} in C) for if-else, while-, for- loops, subroutines, etc.


What kind of language is C programming?

C is a general purpose, procedure oriented (procedural) programming language developed by Dennis Ritchie in 1972.


Is windows XP a procedural language or object oriented?

Windows XP is an operating system, not a programming language.