ictu-dungnt98 / OOP-in-C

Simple and efficient implementation of OOP in C suitable for real-time embedded systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object-Oriented Programming in C

Application Note:

Object-Oriented Programming in C

This Application Note describes simple and efficient implementation of main Object-Oriented concepts of encapsulation, single inheritance and polymorphism in portable ISO-compliant C. This implementation is specifically suitable for real-time embedded systems.

The Accompanying Code

The AppNote is accompanied with actual code that you can compile and execute on any desktop computer (running Windows, Linux, or MacOS).

Here is the code structure:

OOP-in-C
¦
¦   AN_OOP_in_C.pdf
¦   LICENSE
¦   README.md
¦
+---encapsulation
¦       main.c
¦       make.bat
¦       oop_in_c.exe
¦       shape.c
¦       shape.h
¦
+---inheritance
¦       main.c
¦       make.bat
¦       oop_in_c.exe
¦       rect.c
¦       rect.h
¦       shape.c
¦       shape.h
¦
+---polymorphism
        circle.c
        circle.h
        main.c
        make.bat
        oop_in_c.exe
        rect.c
        rect.h
        shape.c
        shape.h

Videos

The concepts of OOP in C have been explained in a series of videos:

Contact Information

About

Simple and efficient implementation of OOP in C suitable for real-time embedded systems.

License:GNU General Public License v3.0


Languages

Language:C 99.4%Language:Batchfile 0.6%