jeudi 19 avril 2018

Is this cyclic dependency

class foo{
Bar b;
}

class bar{
Class clazz = foo.class;
}

Does the above snippet show cyclic dependency. Class foo has a reference of bar class object. Class bar has reference to foo class itself.

Aucun commentaire:

Enregistrer un commentaire