Java Performance/Python etc
Rodney R. Korte
pmmail@rpglink.com
Wed, 20 Sep 2000 14:53:51 -0400 (EDT)
On Wed, 20 Sep 2000 12:40:11 +0100 (BST), Simon Bowring wrote:
Interesting history on "static" in C++. Didn't know that.
>language! A different example of this is when Soupstrap wanted to
>introduce a keyword "virtual" for pure virtual member functions,
>instead you have to say: "void myVirtualFunction()=0;".
>
>So in this context "=0" means "virtual" (i.e. that the implementation
>of the method/member-function needs to be supplied by derived
>classes). Hmmm - obvious!
Tsk, tsk, Simon. "void myVirtualFunction()=0;" isn't even a
valid declaration.
The virtual "keyword" specifies a member to be virtual. The "=0",
in combination with the "virtual" keyword means the function is
"pure virtual" ("abstract" in OO terminology).
And did you know that the behavior of a destructor declared virtual
somewhere in a class heirarchy means something a little different
that for any other function?
Rodney
--
Rodney R. Korte
rkorte@psu.edu
Phone: 814-863-0817 Fax: 814-863-6239
http://www.personal.psu.edu/rrk102