Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trying to learn OpenGL Pin
Rozis27-Feb-10 23:32
Rozis27-Feb-10 23:32 
QuestionClasses and Inheritance, question inside. Pin
rbwest8626-Feb-10 11:47
rbwest8626-Feb-10 11:47 
AnswerRe: Classes and Inheritance, question inside. Pin
Saurabh.Garg26-Feb-10 15:38
Saurabh.Garg26-Feb-10 15:38 
GeneralRe: Classes and Inheritance, question inside. Pin
rbwest8626-Feb-10 17:34
rbwest8626-Feb-10 17:34 
GeneralRe: Classes and Inheritance, question inside. Pin
Tim Craig26-Feb-10 18:50
Tim Craig26-Feb-10 18:50 
GeneralRe: Classes and Inheritance, question inside. Pin
Saurabh.Garg26-Feb-10 20:38
Saurabh.Garg26-Feb-10 20:38 
AnswerRe: Classes and Inheritance, question inside. Pin
David Crow27-Feb-10 4:38
David Crow27-Feb-10 4:38 
AnswerRe: Classes and Inheritance, question inside. Pin
Bram van Kampen27-Feb-10 9:34
Bram van Kampen27-Feb-10 9:34 
Hello,

Well, I think the answer is in:
rbwest86 wrote:
Justify your
answers

That means in this case that nearly any answer will do, provided you can argue the point.

I would say that they all can be derrived from CBird, they all potentially have eggSize, airSpeed and altitude. You distinguish their flying behaviour by overriding the Virtual Function 'fly' In the case of COstrich, I would say:

#include 'Bird.h"
class COstrich : public CBird{
void COstrich::fly(){altitude=0;} 


Beyond that, what springs to mind is, that one fool can ask more questions...etc.

Regards,

Smile | :)
Bram van Kampen

QuestionC++ How to retrieve IP Address/Default Gateway Pin
gamefreak229126-Feb-10 10:38
gamefreak229126-Feb-10 10:38 
AnswerRe: C++ How to retrieve IP Address/Default Gateway Pin
Nelek26-Feb-10 11:02
protectorNelek26-Feb-10 11:02 
GeneralRe: C++ How to retrieve IP Address/Default Gateway Pin
gamefreak229126-Feb-10 11:18
gamefreak229126-Feb-10 11:18 
AnswerRe: C++ How to retrieve IP Address/Default Gateway Pin
Moak26-Feb-10 23:17
Moak26-Feb-10 23:17 
AnswerRe: C++ How to retrieve IP Address/Default Gateway Pin
David Crow27-Feb-10 4:41
David Crow27-Feb-10 4:41 
QuestionSpecial character as button label Pin
Dave Colter26-Feb-10 7:58
Dave Colter26-Feb-10 7:58 
AnswerRe: Special character as button label Pin
Nemanja Trifunovic26-Feb-10 8:15
Nemanja Trifunovic26-Feb-10 8:15 
GeneralRe: Special character as button label Pin
Dave Colter26-Feb-10 8:26
Dave Colter26-Feb-10 8:26 
AnswerRe: Special character as button label Pin
Avi Berger26-Feb-10 8:49
Avi Berger26-Feb-10 8:49 
QuestionRe: Special character as button label Pin
CPallini26-Feb-10 9:03
mveCPallini26-Feb-10 9:03 
AnswerRe: Special character as button label Pin
Dave Colter26-Feb-10 9:06
Dave Colter26-Feb-10 9:06 
QuestionRe: Special character as button label Pin
David Crow26-Feb-10 9:15
David Crow26-Feb-10 9:15 
AnswerRe: Special character as button label Pin
Dave Colter26-Feb-10 10:11
Dave Colter26-Feb-10 10:11 
GeneralRe: Special character as button label Pin
CPallini26-Feb-10 10:31
mveCPallini26-Feb-10 10:31 
GeneralRe: Special character as button label Pin
Dave Colter26-Feb-10 10:44
Dave Colter26-Feb-10 10:44 
QuestionRe: Special character as button label Pin
CPallini26-Feb-10 10:01
mveCPallini26-Feb-10 10:01 
QuestionRe: Special character as button label Pin
Bram van Kampen26-Feb-10 15:09
Bram van Kampen26-Feb-10 15:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.