I "learned" C++ at school, but there are several things I don't know, like where or what a compiler can optimize, seems I already know that inline
and const
can boost a little...
If performance is an important thing (gaming programming for example), does putting class attributes not public
(private
or protected
) allow the compiler to make more optimized code ?
Because all my previous teacher were saying was it's more "secure" or "prevent not wanted or authorized class access/behavior", but in the end, I'm wonder if putting attributes not public
can limit the scope and thus fasten things.
I don't criticize my teachers (should I), but the programming class I was in wasn't very advanced...