Re: object-oriented programming explained in 51 lines
- From: Robert Martin <unclebob@xxxxxxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 16:53:29 -0600
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 |
.
- Follow-Ups:
- Re: object-oriented programming explained in 51 lines
- From: topmind
- Re: object-oriented programming explained in 51 lines
- Prev by Date: Re: Why is Object Oriented so successfull
- Next by Date: Re: Why is Object Oriented so successfull
- Previous by thread: Re: assert{ 2.0 } - a new kind of assertion
- Next by thread: Re: object-oriented programming explained in 51 lines
- Index(es):
Relevant Pages
|