Skip to content
0:00 / 0:00

#oop#inheritance#c

#30 OOP Part-2: Inheritance in C and C++

Quantum Leaps, LLC

74K subscribers • 7 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

22K views7 years ago1 recommendation

Systems programmingSoftware designCC++Embedded systems

Miro Samek demonstrates how to emulate inheritance in C, compares it to C++ inheritance, and analyzes the compiler output.

This second lesson on Object-Oriented Programming (OOP) introduces the concept of Inheritance, which is a mechanism for reusing common attributes and operations among classes. You'll see how you can emulate Inheritance 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 and again you inspect the generated code to compare it with C. Finally, you will see how to *think* about inheritance and not confuse it with class composition. ------ 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/lesson30.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…