Caleb Cushing's Blog Also known as XenoTerraCide
Posts with the tag SOLID Principals:

Java Privacy, broken by design

| 1386 words | object oriented design SOLID Principals polymorphism java
It is worth noting that none of the following arguments apply to anything using the keyword static which makes things more procedural (or in some cases functional, than Object Oriented. The suggestion in Java is to give the least required permission, but this, in my humble opinion, violates the Open-Closed Principle. Java has four privacy levels. Giving something the least permission required to function is fine in a Security context, privacy in programming however is simply there to discourage developers from doing stupid things.
 READ MORE