Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

#32 OOP Part-4: Polymorphism in C

23.1K views on YouTube

This fourth lesson on Object-Oriented Programming (OOP) continues with Polymorphism, but this time you will see how to implement it in portable ANSI C. This should reinforce what you’ve learned about polymorphism in C++ in the last lesson and expose some additional nuances of the VPTR-VTABLE implantation. After this, the lesson will conclude with some general principles and guidelines on when to use and not to use polymorphism in your designs.

——
Resources:

Companion web page for this video course:
https://www.state-machine.com/quickstart

GitHub repository for projects for this video course:
https://github.com/QuantumLeaps/modern-embedded-programming-course

Transcript of this lesson:
https://www.state-machine.com/course/lesson32.txt

Music credits:
The background music comes from:
https://www.bensound.com/royalty-free-music/track/straight