ANKO Code Academy
AI-Native Coding Learning Platform
Courses
Labs
Discussions
quiz
Strategy Pattern Quiz
Question 1 of 5
Score: 0/5
What is the primary intent of the Strategy pattern?
To define a family of algorithms, encapsulate each one, and make them interchangeable
To allow an object to alter its behavior when its internal state changes
To ensure a
class has
class has only one instance and provide a global point of access
To provide a way to access elements of a collection sequentially
Check Answer
Previous
Next Topic
Strategy Pattern Quiz - Anko Academy