August 2018
Intermediate to advanced
372 pages
9h 29m
English
The principal motivation of the interface segregation principle is aligned with the lean movement where creating values with fewer resources is essential. Here's a short definition for it:
Avoid things that you don't use.
You may have already seen classes (modules) implementing interfaces with some method implementations, such as the following:
public class Abc implements Xyz {
@Override
public void doSomething(Param a) {
throw new UnsupportedOperationException
("A good explanation here");
}
// Other method implementations
}
Alternatively, another option called comment as implementation tends to be used, as shown in the following code:
public class Abc implements Xyz { @Override public void doSomething(Param ...Read now
Unlock full access