Page 1 of 1

About Question enthuware.ocmjea.v6.2.105 :

Posted: Tue Feb 06, 2018 11:28 am
by javatuz
Wrong answer? 2+5


Identify the objectives of the Strategy pattern?

1) To define an object that encapsulates how a set of objects interact --> Facade
2) To define the skelcton of an algorithm, deferring some steps to subclasses --> template methode
3) To decauple an abstraction from its implementation so that the two can vary independently --> Bridge or something
4) To define a family of algorithms, encapsulate each one, and make them interchangeable --> Strategy - (Abstract factory pattern is "famliy of related objects")
5) To allow subclasses to redefine certain steps of an algorithm without changing the algorithm's structure --> template methode / run-time polymorphism
6) To provide a way to configure a class with one of many behaviors --> Strategy -> many behaviors

==> 4+6