Difference between revisions of "OOP Class12"
esse quam videri
(→Homework) |
(→Strategy Pattern) |
||
Line 7: | Line 7: | ||
http://www.dofactory.com/Patterns/PatternStrategy.aspx | http://www.dofactory.com/Patterns/PatternStrategy.aspx | ||
+ | <html> | ||
<img src="http://www.dofactory.com/Patterns/Diagrams/strategy.gif"> | <img src="http://www.dofactory.com/Patterns/Diagrams/strategy.gif"> | ||
− | + | </html> | |
Create Characters class and weapons class that uses the strategy pattern | Create Characters class and weapons class that uses the strategy pattern | ||
Revision as of 15:09, 21 April 2011
Strategy Pattern
Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
http://www.dofactory.com/Patterns/PatternStrategy.aspx
Create Characters class and weapons class that uses the strategy pattern
Use Case
http://en.wikipedia.org/wiki/Use_case
Diagrams
http://en.wikipedia.org/wiki/Use_case_diagram
Windows Course App Use Case
Actors
- particiant outside of the system
Activity
- something an actor does
Version 1 breif use case
Actor Admin Course #Add a course to the system #Delete a course to the system Student #Add a student to the system #Delete a student to the system #Student add a course #Student remove a course
Home work
Finish the consumable example. Make Beverages Consumable by dogs and humans.
http://iam.colum.edu/oop/classsource/class11/ConsoleApplicationLunch.zip http://iam.colum.edu/oop/classsource/class11/Race.zip