Define a family of algorithms, encapsulate each one, and make theminterchangeable. Strategy lets the algorithm vary independently fromclients that use it.
Define a family of algorithms, encapsulate each one, and make theminterchangeable.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 theminterchangeable. 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ó.