jeudi 8 juillet 2021

Dependency between two class

class Foo {}
class Bar {
  Foo foo;
}

Since Foo is a type of field of Bar, can we safely claim that Bar depends on Bar? What if foo == None? Does that mean Bar no longer depends on Bar?

Aucun commentaire:

Enregistrer un commentaire