lundi 1 mai 2017

How to remove dependency between two classes?

for example:

public class A {}

public class B
{
    public void test()
    {
        A obj = A();
    }
}

I just looking for best way to remove dependency between class A and B, Or which design pattern is best suited for this if more classes added at sub classes level?

Aucun commentaire:

Enregistrer un commentaire