Skip to content

Instantly share code, notes, and snippets.

@pjastr
Created June 1, 2020 13:05
Show Gist options
  • Save pjastr/3690584b53783b620f83c67ff8d38440 to your computer and use it in GitHub Desktop.
Save pjastr/3690584b53783b620f83c67ff8d38440 to your computer and use it in GitHub Desktop.

Stan

http://devman.pl/pl/techniki/wzorce-projektowe-stanstate/

https://refactoring.guru/design-patterns/state/csharp/example

https://www.dofactory.com/net/state-design-pattern

L1. Stwórz projekt symulujący działanie Drukarki na podstawie jej stanu. Przykładowy diagram UML https://dotnettrickscloud.blob.core.windows.net/img/designpatterns/real-life-example-of-state-design-pattern.png

Strategia (polityka)

https://www.plukasiewicz.net/Artykuly/Strategy_Pattern

https://www.altcontroldelete.pl/artykuly/wzorzec-strategia-przykladowa-implementacja-w-c-/

https://refactoring.guru/design-patterns/strategy/csharp/example

L2. Stwórz przykładową klasę Test z polem int. Następnie stwórz klasę na przechowywanie sortowanej listy na obiekty typu Test. Różne mechanizmy sortowanie umieść w różnych klasach aby było to zgodne ze wzorcem strategii.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment