Skip to content
0:00 / 0:00

#oop#encapsulation#c

#29 OOP Part-1: Encapsulation (classes) in C and C++

Quantum Leaps, LLC

74K subscribers • 7 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

45K views7 years ago1 recommendation

Systems programmingSoftware designCC++Embedded systems

Miro Samek explains how to emulate encapsulation in C, compares it to C++ classes, and examines the generated assembly code.

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 and again you inspect the generated code to compare it with C. Finally, you will see how Encapsulation relates to concurrent programming with an RTOS. ------ 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/lesson29.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…

u/Ivanovitch_kin r/C_Programming • Mentions

On “Is it possible to make all the useful features in C++, in C ?”

You can kinda implement encapsulation, inheritance and polymorphism. Check this out and also this (same author, as video courses)