virtual??
-
Does anyone know why the
virtual
keyword in C++ has this name? It doesn't seem like a very sensible title for it. There must be some history to it or somthing? Joel HoldsworthAfter you understand virtual, please explain me static :-D Yes, even I am blogging now!
-
Does anyone know why the
virtual
keyword in C++ has this name? It doesn't seem like a very sensible title for it. There must be some history to it or somthing? Joel HoldsworthUnsure, But maybe it is that you can do thinks in a virtual class or function that you can't do in a base or derived one. Regardz Colin J Davies Attention: Watch this signature for an upcoming announcement that will affect you.
-
After you understand virtual, please explain me static :-D Yes, even I am blogging now!
Yeah that's a good one - especiallly static functions :wtf:; what a stupid name! Joel Holdsworth
-
Does anyone know why the
virtual
keyword in C++ has this name? It doesn't seem like a very sensible title for it. There must be some history to it or somthing? Joel HoldsworthIf you have got a deep interest in the history of C++ the book you should get is "The Design And Evolution of C++" by Stroustrup (father of C++). http://www.amazon.com/exec/obidos/search-handle-url/index%3Dblended%26field-keywords%3Ddesign%252520and%252520evolution%252520c%25252B%25252B%26store-name%3Dall-product-search/102-0180251-2256166 As for virtual allow me to speculate. The Ada programming language that appeared AFAIK before C++ has got a keyword "generic", which might be slightly related to "virtual". :) Adam _____________________________________ Action without thought is not action Action without emotion is not life
-
If you have got a deep interest in the history of C++ the book you should get is "The Design And Evolution of C++" by Stroustrup (father of C++). http://www.amazon.com/exec/obidos/search-handle-url/index%3Dblended%26field-keywords%3Ddesign%252520and%252520evolution%252520c%25252B%25252B%26store-name%3Dall-product-search/102-0180251-2256166 As for virtual allow me to speculate. The Ada programming language that appeared AFAIK before C++ has got a keyword "generic", which might be slightly related to "virtual". :) Adam _____________________________________ Action without thought is not action Action without emotion is not life
Very insightful. :-) :-) Regardz Colin J Davies Attention: Watch this signature for an upcoming announcement that will affect you.
-
After you understand virtual, please explain me static :-D Yes, even I am blogging now!
C/C++ C# ==================================== static private virtual abstract Anyways, thats how I understand it. :) top secret xacc-ide 0.0.1
-
Does anyone know why the
virtual
keyword in C++ has this name? It doesn't seem like a very sensible title for it. There must be some history to it or somthing? Joel HoldsworthI think you should ignore the fact that a virtual method may have a default implementation where it's declared. The function is there (declared) but not there at the same time (not implemented). It's virtually there. :) -- ...Coca Cola, sometimes war...
-
I think you should ignore the fact that a virtual method may have a default implementation where it's declared. The function is there (declared) but not there at the same time (not implemented). It's virtually there. :) -- ...Coca Cola, sometimes war...
Yeah that kinda makes sense... but it still seems a little flimsy. Why not
overridable
or somthing else... somthing more intuitive. Joel Holdsworth -
Does anyone know why the
virtual
keyword in C++ has this name? It doesn't seem like a very sensible title for it. There must be some history to it or somthing? Joel HoldsworthFrom "The C++ programming language" by B. Stroustrup: The word virtual means: "may be redifined later in a class derived from this one."
A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
-
Yeah that kinda makes sense... but it still seems a little flimsy. Why not
overridable
or somthing else... somthing more intuitive. Joel Holdswortha friend of a friend *cough* said that that was a vb.net keyword you dont want to include vb keywords into c++ do you? //Roger
-
If you have got a deep interest in the history of C++ the book you should get is "The Design And Evolution of C++" by Stroustrup (father of C++). http://www.amazon.com/exec/obidos/search-handle-url/index%3Dblended%26field-keywords%3Ddesign%252520and%252520evolution%252520c%25252B%25252B%26store-name%3Dall-product-search/102-0180251-2256166 As for virtual allow me to speculate. The Ada programming language that appeared AFAIK before C++ has got a keyword "generic", which might be slightly related to "virtual". :) Adam _____________________________________ Action without thought is not action Action without emotion is not life
"generic" makes more sense to me though, than "virtual" Sonork 100.41263:Anthony_Yio
-
C/C++ C# ==================================== static private virtual abstract Anyways, thats how I understand it. :) top secret xacc-ide 0.0.1
que? are you saying that static is the same as private, and virtual is the same as abstract?
#include <beer.h>
-
After you understand virtual, please explain me static :-D Yes, even I am blogging now!
Daniel Turini wrote: please explain me static It simply means "lack of change." Another definition says it "lacks action or movement."
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
From "The C++ programming language" by B. Stroustrup: The word virtual means: "may be redifined later in a class derived from this one."
A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
Bob Stanneveld wrote: From "The C++ programming language" by B. Stroustrup: The word virtual means: "may be redifined later in a class derived from this one." My "English/C++ lexicon" said the same thing. :cool: - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234
-
Does anyone know why the
virtual
keyword in C++ has this name? It doesn't seem like a very sensible title for it. There must be some history to it or somthing? Joel Holdsworth -
Yeah that kinda makes sense... but it still seems a little flimsy. Why not
overridable
or somthing else... somthing more intuitive. Joel Holdsworth