Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 19s8 days 9 hours 54 minutes 19 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 19s8 days 9 hours 54 minutes 19 seconds.

Sign in to watch this lesson
Runtime Polymorphism · 4:39
A Smiley is a Circle is a Shape. We watch such an object being built from the base up and torn down from the top, see why deleting it through a Shape pointer needs a virtual destructor, use dynamic_cast to ask what an object really is, and meet two ways a base class quietly cuts an object short: slicing on copy, and indexing an array of Circles through a Shape pointer.