Einzelnen Beitrag anzeigen

Kas Ob.

Registriert seit: 3. Sep 2023
214 Beiträge
 
#22

AW: Hilfe bei Umstellung Unit DEC5.1 zu DEC6.0

  Alt 26. Jan 2024, 17:29
I looked at the library,
ValidFormat and ValidHash supposed to be working as factory design, you feed them a class type and will get a class, this implementation to remove the need to hardcode a switch between algorithms.

https://en.wikipedia.org/wiki/Factory_method_pattern
but with simple function instead of a class.
  Mit Zitat antworten Zitat