What is the common class pattern Strategy?

Solution. The Strategy pattern suggests that you take a class that does something specific in a lot of different ways and extract all of these algorithms into separate classes called strategies . The original class, called context, must have a field for storing a reference to one of the strategies.

Sizin İçin Seçtik  What is the factory method in Dart?

Leave a Reply

Your email address will not be published. Required fields are marked *