mercredi 18 juin 2014

Why we should not use protected static in java


Vote count:

9




I was going through this question Is there a way to override class variables in Java? The first comment with 36 upvotes was:



If you ever see a protected static, run.



Can anyone explain why is a protected static frowned upon?




AntonH

3,103

asked 4 mins ago






Aucun commentaire:

Enregistrer un commentaire