Does usually Safety Critical systems make use of Encapsulation? Let say an embedded system implemented in Ada or C for a satellite, jet fighter, submarine or an airliner.
I got the question since to me the concept of encapsulation is there to help the Software Development and Maintenance process, not the software itself. As it adds up a little bit overhead to access the data via Accessors instead of direct in-memory access, I'm wondering if it is acceptable for such a safety-critical application to implement an abstraction layer like encapsulation.
Also I assume there are tons of code powering up an airliner for example, so if they don't want to have those concepts on-board, then the software development might get out of hand at some point.
P.S. if the question seems off-topic please fill free to comment or edit, as it's a real question to me and I hope to get some answers from the people who has already worked on similar applications.
P.P.S. Just to prevent some confusions, modern versions of Ada has OOP features and encapsulation could be simply achieved in C as well.