mardi 26 mai 2020

why using service implementation pattern in spring

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