I am rewriting the code of an application looking for the best use of the interfaces and I came across a problem:
I have a class that needs to have a private method and I want to create an interface for it, since I have other classes that do the same function.
In short: how do I create an interface that implements a class like this:
public class Classe implements Interface{
@Override
public metodoPublico (){
...
}
@Override
private metodoPrivado (){
...
}
}