It's about time I reformat the tutorial.
I'll do it in a day or two.
Polymorphism Tutorial Polymorphism Tutorial in OOP for C++ with VTABLE Proof in ASM
#17
Posted 14 December 2009 - 09:47 AM
I am having trouble understand the virtual keyword but I'm sure if i keep reading ill get it.
Thanks
Thanks
#18
Posted 12 January 2010 - 04:38 PM
This tutorial is absolutely brilliant. It explains to me what others have failed to do. Thank you.
#19
Posted 17 May 2010 - 03:01 PM
Finally a clear and concise tutorial and explanation, thanks for taking the time.
#20
Posted 26 October 2010 - 01:43 PM
ByteWyse, on 06 January 2007 - 01:50 AM, said:
Base classes at the top of a class hierarchy must always have a virtual destructor. This is necessary to ensure proper cleanup of child classes upon their destruction.
It is untrue that a base class must always have a virtual destructor. See http://blogs.msdn.co.../07/127826.aspx
#21
Posted 26 October 2010 - 04:22 PM
Without knowing how your users/others will use your code, "always" is a good rule of thumb.
#22
Posted 26 October 2010 - 11:15 PM
It is a common interview question, I think it is good to have all the facts relating to virtual destructors and not to pretend it is always right when in reality it is just a rule of thumb, as you say. The tutorial presented it as a rule of thumb which is great, I just wanted to clarify for anyone reading the comments.
This post has been edited by oscode: 26 October 2010 - 11:18 PM
#23
Posted 14 November 2010 - 10:45 AM
this tutorial is good with proper explanation
Thanks
Thanks
|
|







MultiQuote




|