answersLogoWhite

0


Best Answer

Both types of programming utilize algorithms when processing data. Procedural and object oriented programming will also logically compute the tasks assigned to it using different programming languages.

User Avatar

Wiki User

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

Wiki User

15y ago

The most fundamental concepts in object-oriented programming languages are 1) abstraction, 2) encapsulation, 3) inheritance, and 4) polymorphism.

These four concepts can each take a chapter by themselves, so just very briefly in practical terms:

Abstraction is a concept that allows you to 'abstract' the actual manipulation of data/objects/code and synthesize it into instructions of business logic. For example, Car->Start();

Encapsulation allows you to encapsulate data and methodsinto containers to prevent them from interfering with similar data and methods of a different nature other. For example, you might have a method named Start() for your car, and a method named Start() for your stove. To prevent the namespaces from colliding, these go into containers/objects/classes as such: Car->Start(); and Oven->Start();

Inheritance is the idea of letting an object inherit properties from another object. For example, the object Lamborghini inherits all the properties and methods from the object Car.

Polymorphism is the ability of objects to dynamically adapt themselves to another container. This is the most complicated of the concepts and it's a very poor explanatory statement.

Structured programming languages aren't object-oriented - they are function-oriented, so they have none of the attributes above. Those are the key differences.

For more information, I recommend you read a good C++/Smalltalk/Java tutorial. Like for examplehttp://www.desy.de/gna/html/cc/Tutorial/...

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Structured programming can be thought of as using a series of steps and simple constructs to solve a problem. At a basic level, consider writing a set of instructions for a factory worker assembling a widget. These instructions might look like:

1. Attach part 'a' to part 'b' and call that part 'ab'

2. Attach part 'c' to part 'd' and call that part 'cd'

3. Attach part 'ab' to part 'cd'

4. Put the widget in the box

5. Ship the widget

6. Repeat

In this scenario, the problem is solved by a linear, repetition of events performed by an external actor.

Object oriented programming, on the other hand models the object that being worked on. Instead of giving a list of instructions to an external actor, the widget would be given the ability to construct itself. While it is a different way of thinking than people are generally used to applying to problem solving, it is ultimately much more flexible than a structured methods.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

In structured programming...the idea was that the overall flow of control of the program was laid out using a function call hierarchy - sort of like an inverted tree. The main routine was at the top and then called routines branched out in successive layers under that. When these functional "trees" were implemented as skeleton code without any real business logic or other body, this was called "Top Down" programming, because the tree was implemented from the "top down" to give it structure, before any of the detail was filled in. In this way the overall flow and structure of a progam can be tested before being overwhelmed by detail.

Object Oriented programming doesn't think of a single flow of control through the program. Instead, real-world business entities in the problem space are implented as individual objects with (a) their own data and (b) their own behaviour. The progam is then put together by implementing logical flow of control from object to object, with each one doing "it's own thing" and then calling on other objects to "do their own thing". In this way, it's hoped that overall functionality within the program is encapsulated and divided up logically so that each bit can be implemented separately and, hopefully, re-used in other programs.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Structures encapsulate only data whereas objects capture both data and behavior in the form of methods.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Similarities between Structured programming and object oriented programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the comparative between Objective Oriented Programming Language and Structured Programming Language?

what is triple jump test?


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 structure oriented and object oriented programming language?

the main difference is that structured programming deals with the flow of execution, and not, primarily, with the data. The mathematical basis for structured programming has to do with the elimination of arbitrary jumps (GOTOs) in favor of code blocks and functions. In particular, "information hiding" as it relates to data isn't fully developed in structured programming; structured programming has to do with the organization of the code, rather than the data, and pure structured programming passes data around in the form of function arguments (conceptually, "on the stack"). In contrast, object oriented programming primarily deals with data issues. The object/class paradigm promotes clean, flexible organization of data in the same way that structured programming promotes clean, flexible organization of code. In a pure object oriented approach, the flow of program execution is treated as bits of behavior associated with the packets of data that are "objects".


Difference between pseudocode and structured English?

structured English resembles spoken Englishwhere as pseudocode resembles programming languageWhat_are_the_differences_between_structured_English_and_pseudo_code


What is difference between structural language and object oriented language?

I think there is no any difference between object oriented programming language. Because somebody have written that vb is object based language because there is no inheritance, but javascript has no classes and no inheritance but javascript is also object oriented scripting language and java is also object oriented language vb has no inheritance but classes is.So vb is object based language This is not clear that difference between object oriented and object based. if i am wrong than what should be your answer and if i am wright than no problem But first i am requesting to the developer of any programming language that please define the difference between object oriented and object based languages. Amit Sinha Dist-Gaya State-Bihar

Related questions

What is the difference between structured oriented programming procedure and oriented programming?

LOTTA


What is the comparative between Objective Oriented Programming Language and Structured Programming Language?

what is triple jump test?


Thw importance of ASP.net?

Object Oriented Programming is a subset of structured programming. After objects are created in a program, you use those objects and their methods to operate the program. In structured programming, you have a program with many methods in which you can use. One difference between structured programming and object-oriented programming is that structured programming uses the data that is given to them through parameters, while in object-oriented programming, the methods act upon the object's data (fields). This makes programming much easier because the fields are all there and you do not have to make sure that the correct field is passed to the correct method. All you have to do is call which field you want to work with.


Difference between Object Oriented paradigms of programming language over Structured paradigm?

koi to answer likh diya karooooo


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 structure oriented and object oriented programming language?

the main difference is that structured programming deals with the flow of execution, and not, primarily, with the data. The mathematical basis for structured programming has to do with the elimination of arbitrary jumps (GOTOs) in favor of code blocks and functions. In particular, "information hiding" as it relates to data isn't fully developed in structured programming; structured programming has to do with the organization of the code, rather than the data, and pure structured programming passes data around in the form of function arguments (conceptually, "on the stack"). In contrast, object oriented programming primarily deals with data issues. The object/class paradigm promotes clean, flexible organization of data in the same way that structured programming promotes clean, flexible organization of code. In a pure object oriented approach, the flow of program execution is treated as bits of behavior associated with the packets of data that are "objects".


Difference between conventional programming and object oriented programming?

diff between oops and conventional programming


What is the difference between oriented programming language and high programming language?

Set/subset: Some high level programming languages are object oriented, but not all of them.


What is the similarities between Procedural programming and visual programming?

it is a load of rubbrish


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


What is the distinct difference between object oriented concept and object oriented programming?

Object oriented concepts are a generalisation of the object oriented principals (encapsulation, inheritance, polymorphism and abstraction) without specifying a particular implementation of those principals. Object oriented programming is the application of those principals through an object oriented programming language.


Difference between pseudocode and structured English?

structured English resembles spoken Englishwhere as pseudocode resembles programming languageWhat_are_the_differences_between_structured_English_and_pseudo_code