r/shittyprogramming • u/nathodood • Nov 24 '18
ELI5: Why can't we make impenetrable firewalls if we can just make use of the "protected" keyword?
Like so:
protected Client client() {...}
89
Upvotes
14
u/humblevladimirthegr8 Nov 25 '18
Even protected clients are still vulnerable to some of the more infectious viruses. The only way to be truly safe is to Just Say No to all incoming traffic.
9
u/voicesinmyhand Nov 28 '18
"Protected" is for code.
For firewalls you want to use the "inpenetrable" keyword. It's a beginner's mistake, so we'll be gentle.
3
u/Bill_Morgan Nov 25 '18
Because keywords like private and protected are fake keywords that lose all meaning once the program is compiled.
0
u/[deleted] Nov 24 '18
[deleted] — view deleted comment