I did code cleanup and started wondering about something specific.
Assuming I have a program that compiles, runs, and usually does what it should.
Now I am moving a specific class method from public to private (or protected), and the code still compiles without errors.
Is it theoretically possible to have a scenario in which the behavior of a program would change as a result of code changes?
If so, I would like to see an example.
c ++
Photon
source share