What a pathterne fits in my situation.



  • Depending on the data received, the class must provide an object that is configured according to the data received. Is there any suitable pattern or you're gonna have to do everything in the case?



  • I think you'll need a patron builder.

    "Designs the construction of a complex object from its presentation, so the same design process can produce different images."

    We can read this: https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D1%80%D0%BE%D0%B8%D1%82%D0%B5%D0%BB%D1%8C_(%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F)




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2