Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Object Relationship

Avatar for Mars Mars
June 13, 2019

Object Relationship

Provide a simple method to draw the class relationship as "Clean Architecture" does.

Avatar for Mars

Mars

June 13, 2019
Tweet

More Decks by Mars

Other Decks in Technology

Transcript

  1. To Simplify the Relationship • Use ◦ Association ▪ Aggregation

    ▪ Composition • Implement ◦ Inheritance ◦ Realization A B Use C D Implement
  2. Comparison Person (M) GreetingViewController (V) GreetingViewModelProtocol GreetingViewModel (VM) MVVM Person

    (M) GreetingViewController (V) GreetingView GreetingViewPresenter GreetingPresenter (P) MVP
  3. Comparison - by Layers Person (M) GreetingViewController (V) GreetingViewModelProtocol GreetingViewModel

    (VM) MVVM Person (M) GreetingViewController (V) GreetingView GreetingViewPresenter GreetingPresenter (P) MVP