What is the meaning of runtime dependencies of objects in object-oriented programming? I came across this question by studying C ++.
What is the meaning of runtime dependencies of objects in object-oriented programming? I came across this question by studying C ++.
The translation of runtime dependencies of objects into free scope would be something like "dependency on objects at runtime". It works as follows:
In languages compiled as C ++, the compiler has basically two phases: a compilation , where all classes and data structures are checked and their code is transformed into machine code, and < link , where references between various object files (or machine code files) are checked again to see if anything is missing.
In case of runtime dependencies, we might be talking about classes that are implemented in dynamic libraries, usually provided by third parties. The conferencing of these dependencies is done when your program executes. The handling of errors must be done through the mechanism of catching exceptions.