Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Is it possible in procedural programming to mimic OOP?
The question is why?
The answer is not complete.
For example, windows is written in C, but many features are implemented precisely through the transfer of pointers to a pre-prepared structure, but does it make sense now?
Yes, you just need to add a field to the beginning of each structure, in which pointers to functions will be stored in some uniform form.
More specific examples have already been thrown out here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question