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

Sign in to watch this lesson
Runtime Polymorphism · 3:49
How can one function work with many kinds of container without knowing which one it was handed? We build Stroustrup's Container interface with pure virtual functions, implement it twice (a vector and a linked list), watch the same call land in different code, and see why polymorphic objects are used through references and pointers rather than stored by value.