• (2 Pages)
  • +
  • 1
  • 2

Polymorphism Tutorial Polymorphism Tutorial in OOP for C++ with VTABLE Proof in ASM Rate Topic: ****- 8 Votes

#16 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Posted 05 December 2008 - 12:35 AM

It's about time I reformat the tutorial.
I'll do it in a day or two.
Was This Post Helpful? 0
  • +
  • -

#17 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 615
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

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
Was This Post Helpful? 0
  • +
  • -

#18 maxironchin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-January 10

Posted 12 January 2010 - 04:38 PM

This tutorial is absolutely brilliant. It explains to me what others have failed to do. Thank you. :)
Was This Post Helpful? 0
  • +
  • -

#19 genomega  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 3
  • Joined: 17-May 10

Posted 17 May 2010 - 03:01 PM

Finally a clear and concise tutorial and explanation, thanks for taking the time.
Was This Post Helpful? 0
  • +
  • -

#20 oscode  Icon User is offline

  • D.I.C Regular

Reputation: 109
  • View blog
  • Posts: 257
  • Joined: 24-October 10

Posted 26 October 2010 - 01:43 PM

View PostByteWyse, 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
Was This Post Helpful? 0
  • +
  • -

#21 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3106
  • View blog
  • Posts: 19,145
  • Joined: 14-September 07

Posted 26 October 2010 - 04:22 PM

Without knowing how your users/others will use your code, "always" is a good rule of thumb.
Was This Post Helpful? 0
  • +
  • -

#22 oscode  Icon User is offline

  • D.I.C Regular

Reputation: 109
  • View blog
  • Posts: 257
  • Joined: 24-October 10

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

Was This Post Helpful? 0
  • +
  • -

#23 atul.nerkar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 14-November 10

Posted 14 November 2010 - 10:45 AM

this tutorial is good with proper explanation

Thanks
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2