Re: object-oriented programming explained in 51 lines



On 2007-12-07 13:29:27 -0600, ram@xxxxxxxxxxxxxxxxxx (Stefan Ram) said:

What is object-oriented programming?

Writing programs in terms of data structures that are manipulated by functions that are called through jump tables inside those data structures.


What is an object-oriented programming language?

A language that automatically builds the data structures and jump tables and disguises jump table lookup as regular function calls. OO languages often allow similar data structures to share similar parts of their jump tables.

What is the main advantage of an object-oriented programming language?

Managing interdependencies between modules.

Can you give a small example programm that shows something
that can be done in an object-oriented programming language,
but is not possible in a purely procedural programming language?

In an OO language execution can flow directly from module A to module B without the source code of module A mentioning module B, and without the explicit use of a jump table or pointer to function.

--
Robert C. Martin (Uncle Bob)  | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |



.



Relevant Pages

  • Re: why learn C?
    ... programming beginner. ... Any language that allows subroutines is procedural based. ... you can learn about algorithms and data structures ...
    (comp.lang.c)
  • Re: Factor
    ... emphasis on idiomatic programming is the greatest challenge. ... it sure is nice when a language gives you a rich and ... flexible set of data structures and algorithms that are designed so ... There is no reason to believe that my implementation of lists is ...
    (comp.lang.forth)
  • Re: OT: UK okays warrantless remote hacking of PCs
    ... not safe languages - that is, programming mistakes can cause more than just ... but allow corruption of data structures and the execution ... ever-popular SQL insertion exploit -- doesn't mattter what language you wrote ...
    (sci.electronics.design)
  • Re: OT: UK okays warrantless remote hacking of PCs
    ... not safe languages - that is, programming mistakes can cause more than just ... but allow corruption of data structures and the execution ... ever-popular SQL insertion exploit -- doesn't mattter what language you wrote ...
    (sci.electronics.design)
  • Re: Is delphi a good introduction to programming?
    ... > numbers when you are learning early on. ... Its all programming, but I agree that one has to have a disciplined approach ... Learning the control structure of any language shouldn't ... Learning the building blocks of data structures and using them to construct ...
    (comp.lang.pascal.delphi.misc)