About Question enthuware.ocmjea.v6.2.105 :

Post Reply
Posts: 2
Joined: Thu Jan 25, 2018 4:52 am

About Question enthuware.ocmjea.v6.2.105 :

Post by javatuz » Tue Feb 06, 2018 11:28 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest