Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
Define a family of algorithms, encapsulate each one, and make them interchangeable.Strategy lets the algorithm vary independently from clients 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 từ các khách hàng mà sử dụng nó.