Skip to content
0:00 / 0:00

#oop#polymorphism#c++

#31 OOP Part-3: Polymorphism in C++

Quantum Leaps, LLC

74K subscribers • 7 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

21K views7 years ago1 recommendation

Systems programmingSoftware designCC++Embedded systems

Miro Samek reverse-engineers polymorphism in C++ to explain virtual tables, virtual pointers, and their associated overheads.

This third lesson on Object-Oriented Programming (OOP) introduces polymorphism, which is a uniquely object-oriented concept that has no direct analog in a traditional procedural language like C. Therefore the plan for this lesson is reversed compared to the previous two lessons in that you will first see what polymorphism is and you will reverse-engineer its inner workings in C++. You will see the benefits of polymorphism and understand its overheads. You will put this knowledge to the test in the next lesson, where you will implement polymorphism in C. ------ Resources: Companion web page for this video course: state-machine.com/quickstart GitHub repository for projects for this video course: github.com/QuantumLeaps/modern-embedded-programming-course Transcript of this lesson: state-machine.com/course/lesson31.txt Music credits: The background music comes from: bensound.com/royalty-free-music/track/straight

Why it's here

1 person recommends this

What people say. Recommended as an excellent deep dive into how object-oriented programming works under the hood in embedded systems.

u/active-objectin r/embedded • Recommends

Embedded Programming Video Course Shows How OOP Works Under the Hood https://preview.redd.it/yi5au1v88lp31.png?width=1280&format=png&auto=webp&s=ab34c4eb89eb52a89da7d898f7666e883d2e297b If you'd like to understand how Object-Oriented Programming (OOP) really works under the hood, here is a free video course for you: **OOP part-1: Encapsulation:** This first lesson on Object-Oriented Programming (OOP) introduces the concept of Encapsulation, which is the ability to package data and functions together into classes. You'll see how you can emulate Encapsulation in C, what kind of code is generated, and how to debug such code. Next, you will translate the C design into C++ using a class…