Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently fromclients that use it.
Define a family of algorithms, encapsulate each one, and make them interchangeable.Strategy lets the algorithm vary independently fromclients that use it.
Xác định một gia đình của các thuật toán, gói gọn mỗi người, và làm cho họ thay đổi được. Chiến lược cho phép các thuật toán khác nhau một cách độc lập fromclients mà sử dụng nó.