Why loose coupling under java code?
i don't understand, be loose coupling when using interface
why using interface?
Service.java
interface Service{
public void method();
}
in ServiceImpl.java
@Override
ServiceImpl implements Service{
public void method(){
//To-do override
}
}
Aucun commentaire:
Enregistrer un commentaire