Skip to content

Mvvm architecture representation

Devrath edited this page Mar 26, 2022 · 4 revisions

Description

  • Here in the diagram we can say the classes below are the dependencies of the classes above.
  • This is because the class above depends on the class below.
  • best possible way to provide the dependencies needed for the class is to instantiate in the constructor of the class but this is not the correct way.
  • We instantiate the dependencies outside and provide them in the constructor.
  • Also we can share the dependencies here thus using only one instance of dependency instead of creating many instances.
Clone this wiki locally