PP> chrissake??? Looks like a damn Pascallian variable name! ;-)) One of the
PP> suggested "fix" for the "= 0" is to "add" a keyword like this:
Remeber who C++ was invented. It was supposed to be a scripting
language for a video game. The operator/programmer got tired of
having to go to another machine to compile and then having the
program stored on paper tape. This new scripting language was
then turned into a compiled language for speed issue. The game
project fell flat and UNIX started. The word UNIX is actually
a play on words: it is derived from an emasculated version of MULTIX.
Anywas, If you don't have a screen and have to use a teletype to
"see" what you've done you might tend to make a symbol for all words.
C++ is crypting and has many pitfalls.
PP> TThisObject = object(TObject)
PP> constructor Init;
PP> constructor Load(S: TStream);
PP> procedure Store(S: TStream);
PP> [...]
PP> destructor Done;
PP> end;
constuctors/destuctors are not automatically called, this is my big
gripe about TPascal's objects: I still like TP's stack/range/io checking.
PP> I remember seeing a framework for a particular version of Object Pascal
tha
PP> supported multiple inheritance... It actually *relied* on it and
positively
PP> was the most illogic and barfulous piece of design I ever saw in a
distribu
PP> library. I like to remember this as my first contact with "spaghetti
In c++ IOS object are most likely to have multiple inheritence.
I personally find multiple inheritence to be confusing. Eg:
you have two objects with the same parent
you have a base interface function "something" that is
overrided by each child
Which "something" function would be used be an object that
inherited both of the parents
a
/ \
b c
\ /
d
You also have to stipulat in B & C that the inherited A class is to
be static so that A is not inherited like so:
a a
| |
b c
\ /
d
Moreover, Java does not support multiple inheritence but is support
multiple interfaces - and even stranger to fake multiple inheritence.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)
|