|
|
On 2002-01-30 21:55, Warp <war### [at] tagpovrayorg> wrote:
> Jan Walzer <jan### [at] lzernet> wrote:
> : you mean, if it would something like the following, it wouldn't be OO ?
>
> Precisely. What you described is a typical modular language.
> Modular languages (eg. Modula 2) can have classes, member variables,
> member functions, public and private parts, etc, but if they don't support
> inheritance and dynamic binding, they are not OO.
Modula 2 doesn't have classes (unless you have a very different concept
of "class" than me - to me a class is a set of similar things - if there
can by definition be only one thing per class, its not a class).
Modules are nothing more than name spaces. It does have dynamic binding, though.
hp
--
_ | Peter J. Holzer |
|_|_) | Sysadmin WSR | In case of emergency break laws of physics.
| | | hjp### [at] hjpat |
__/ | http://www.hjp.at/ | -- Stephen Baxter
Post a reply to this message
|
|