lab7 due by 11/19 23:59 to e-learning
파일명: Java24-2-HW7_본인이름_본인학번.zip
Just another Kyoung Shin Park's Lectures Sites site
lecture9
https://stackoverflow.com/questions/4834979/difference-between-strategy-pattern-and-command-pattern
Typically the Command pattern is used to make an object out of what needs to be done — to take an operation and its arguments and wrap them up in an object to be logged, held for undo, sent to a remote site, etc. There will tend to be a large number of distinct Command objects that pass through a given point in a system over time, and the Command objects will hold varying parameters describing the operation requested.
The Strategy pattern, on the other hand, is used to specify how something should be done, and plugs into a larger object or method to provide a specific algorithm. A Strategy for sorting might be a merge sort, might be an insertion sort, or perhaps something more complex like only using merge sort if the list is larger than some minimum size. Strategy objects are rarely subjected to the sort of mass shuffling about that Command objects are, instead often being used for configuration or tuning purposes.
Both patterns involve factoring the code and possibly parameters for individual operations out of the original class that contained them into another object to provide for independent variability. The differences are in the use cases encountered in practice and the intent behind each pattern.
lecture8
java2-lecture8
midterm extra +20 (Strategy, Observer, Decorator, FactoryBuilder 각 5점) due by 11/5 to e-learning
보고서없이, 코드에 “주석”을 반드시 자세히 달아줄 것!
lecture7
java2-lecture7
lecture6
java2-lecture6
Midterm 시험
일시: 2024/10/23(수) 6:00-7:00
장소: 인문관 209호
시험범위: 처음부터-배운데까지