Re: Does anyone in Delphi land NOT use OOP
- From: Hans-Peter Diettrich <DrDiettrich1@xxxxxxx>
- Date: Thu, 09 Nov 2006 06:17:52 +0100
Andrea Raimondi wrote:
We're talking *object-orientation* here, i.e. inheritance, polymorphism, etc, not *modularization*. Modularization *is not* OO by and in itself,
even if it contributes a lot to the cause.
IMO OO is not very precisely defined. With regards to (multiple) inheritance, virtual methods, polymorphism etc. the various OO languages disagree, which of these properties are absolute requirements.
I'd emphasize *intended* encapsulation of *related* functionality in a black box, with a *chance* for multiple instances of the same class/object.
"Intended" because there exist several ways to deny access to the implementation code or data, or to grant access to the implementation of classes. In so far modularization is a requirement for OOP, but for itself it's not sufficient to guarantee for encapsulation, data integrity etc.
"Related" functionality in contrast to a library or collection of arbitrary functions. Using classes as wrappers around arbitrary functions is not OOP, but can be dictated by a particular language (Java...).
A "chance" for multiple instances, unless there exist reqirements for singletons. In Delphi a unit can represent a singleton, because it's impossible to instantiate it multiple times. OTOH a unit can allow to create any number of "objects", accessible by some kind of a handle.
IMO the most important detail is the intention, to organize functionality in classes and objects. Next comes the support by a dedicated language, that should not only *allow* for OOP, but also should *encourage* to use OOP - but this is not an absolute requirement.
DoDi
.
- References:
- Does anyone in Delphi land NOT use OOP
- From: Michael C.
- Re: Does anyone in Delphi land NOT use OOP
- From: Andrea Raimondi
- Re: Does anyone in Delphi land NOT use OOP
- From: Jon Robertson
- Re: Does anyone in Delphi land NOT use OOP
- From: Andrea Raimondi
- Re: Does anyone in Delphi land NOT use OOP
- From: Jon Robertson
- Re: Does anyone in Delphi land NOT use OOP
- From: Andrea Raimondi
- Does anyone in Delphi land NOT use OOP
- Prev by Date: Re: Does anyone in Delphi land NOT use OOP
- Next by Date: Re: Interesting
- Previous by thread: Re: Does anyone in Delphi land NOT use OOP
- Next by thread: Re: Does anyone in Delphi land NOT use OOP
- Index(es):
Relevant Pages
|