|
heirdom |
kosmitek
Member #8,151
December 2006
|
I have more complex classes, but I shortened it in order to it was better to be visible, because problem concerns heirdom only. When I tried compile it I saw: So something is wrong with constructor - I lower marked the line of code which she be lighted as wrong. PS. I know that we don't heirdom constructor
|
X-G
Member #856
December 2000
|
GET A C++ BOOK ALREADY. It will tell you all these things! You can't have a class (in this case better_player) with no explicit constructors that's inherited from a class with no default constructors! -- |
kentl
Member #2,905
November 2002
|
You can download Thinking in C++, 2nd edition by Bruce Eckel for free. It might be a good read. |
Richard Phipps
Member #1,632
November 2001
|
Can you really think in a programming language? I don't mean imagining how to solve a programming issue or problem by thinking of the code, but thinking in general? Life, and all that.. |
Evert
Member #794
November 2000
|
Quote: heirdom The google term is "inheritance" |
kentl
Member #2,905
November 2002
|
Quote: Can you really think in a programming language? I don't mean imagining how to solve a programming issue or problem by thinking of the code, but thinking in general? Life, and all that.. Apparantly Bruce Eckel can. And we could as well if we read his book. |
kosmitek
Member #8,151
December 2006
|
I use: constructor: "player() {};" so now I have:
|
Steve Terry
Member #1,989
March 2002
|
Gasp! Could it ... no no ... could it really be possible kosmitek did something on his own? I can't believe it. Well I guess you don't need our help now, good luck on your next MMORPG project. Oh and by the way the whole point of inheritance you defeated by the way you wrote your classes. Again they do nothing you couldn't do with fewer lines of code in a single class or with C. Sorry for the sarcasm... but DAMN man! ___________________________________ |
|