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/...
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.
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.
what is triple jump test?
There is no difference between procedural programing language & structure programing 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".
structured English resembles spoken Englishwhere as pseudocode resembles programming languageWhat_are_the_differences_between_structured_English_and_pseudo_code
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
LOTTA
what is triple jump test?
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.
koi to answer likh diya karooooo
There is no difference between procedural programing language & structure programing 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".
diff between oops and conventional programming
Set/subset: Some high level programming languages are object oriented, but not all of them.
it is a load of rubbrish
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.
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.
structured English resembles spoken Englishwhere as pseudocode resembles programming languageWhat_are_the_differences_between_structured_English_and_pseudo_code