-
February 22nd, 2010, 12:47 PM
#1
question about polymorphism
I have a question about polymorphism and has been bugging me for ages. The question is
How dose virtual functions,inheritance and base class pointers provide a mechanisim for polymorphic behaviour?
Thanks
not sure if this goes in here?
-
February 22nd, 2010, 12:55 PM
#2
Re: question about polymorphism
That sounds like a homework question. I'm not sure why that would bug you for ages. There's no shortage of documentation on the web and in bookstores.
-
February 22nd, 2010, 01:28 PM
#3
Re: question about polymorphism
-
February 22nd, 2010, 01:33 PM
#4
Re: question about polymorphism
The short version is that these mechanisms together allow a base class variable to be safely assigned any derived class object, each which can behave differently.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|