Obviously that doesn't compile, but I hate to make a file FooType.java with just the 5 lines above in it. Obviously that doesn't compile, but I hate to make a file ...
The interface segregation principle (ISP), one of the five SOLID principles of object-oriented design, states that no client should be forced to depend on methods it does not use. When developers ...