Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help in deriving a class
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Junaid2pac




PostPosted: Mon Jun 25, 2007 6:22 pm   Post subject: Help in deriving a class

Can someone explain how to derive a class and explain the use for it???

Thank
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Tue Jun 26, 2007 11:19 am   Post subject: RE:Help in deriving a class

The question you should be asking is "what is polymorphism, and why should I care?"
Junaid2pac




PostPosted: Tue Jun 26, 2007 12:40 pm   Post subject: Re: Help in deriving a class

That was actually my next question

So ya...Any guidance will be helpful
Junaid2pac




PostPosted: Tue Jun 26, 2007 1:01 pm   Post subject: Re: Help in deriving a class

K i kinda have a good idea of polymorphism and understand downcasting, but don't understand y u would upcast to the base class
wtd




PostPosted: Tue Jun 26, 2007 2:09 pm   Post subject: RE:Help in deriving a class

An elephant is a mammal, but a mammal is not necessarily an elephant.

There are things an elephant can do that all mammals cannot, and if you only know you have a mammal, then you can't flex its trunk.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: