Em đang đọc bài https://tvd12.com/design-pattern/ của anh, theo như anh viết cả 2 đều sử dụng xử lý cách action tương ứng, ví dụ em login thì cả 2 pattern đều xử lý chức năng kiểm tra tài khoản đúng k ạ, vậy sự khác biệt giữa chúng là gì
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sự khác biệt lớp nhất ở đây là strategy sẽ cho phép thay đổi hàm xử lý tương ứng với trạng thái hiện tại của chương trình, còn command thì sẽ bị cố định hàm xử lý em ạ.