but can you explain to me static and protected?
You might also like to look at
In particular 8.11, 8.12 amd 11.5
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
C, C++ Compiler: Microsoft VS2015