Yes. Industrial control system.Have you ever used inheritance for real time project? and if yes then what was that ?
Not so necessary that the job could not have been done with out it. One can go a long way creating an object oriented design in good old C. The support for classes and templates in C++ makes thing a lot neater and less error prone though.Do you really think inheritance was really necessary for the project?
It was necessary in that a library we used for creating ASN.1 messages for SNMP was in C++. We could have used an alternative but that would have been a lot more work.Why did you think that inheritance is the right option for the project. ?
But... now you have confused things even more by asking about "real time" when your opening post was about "embedded programming". These are not the same thing at all. An embedded system may well not have any strict real-time requirements. A non-embedded program may be critically dependent on timing, think games and high speed trading.
In a fast real-time system one would be wise to be wary of many features of C++ because of the potential for cause problems with timing determinism. For example: new/delete, virtual method dispatch, exceptions.
On the other hand if you know what you are doing C++ will produce as good a system a C. In fact I once made an example of the same functionality in C++ and C. The C++ version had classes and instantiated many objects. The C version achieved the same using an extra pointer to struct as a parameter to the "methods". The generated code was byte for byte the same for both!
See here: https://www.embedded.com/modern-c-in-em ... d-reality/ for some interesting reading about using C++ in embedded systems.