Difference between revisions of "OOP Class12"

esse quam videri
Jump to: navigation, search
(Home work)
(Home work)
Line 57: Line 57:
  
 
==Home work==
 
==Home work==
Make Character Class as we did in class 11. Have the character class use the strategy pattern with the strategy implementing on of you classes.
+
Toastable project in moodle
 
 
ie... Character have IConsumable and can consume pasta cheeseburgers...
 
  
 
<!--Finish the consumable example. Make Beverages Consumable by dogs and humans.
 
<!--Finish the consumable example. Make Beverages Consumable by dogs and humans.

Revision as of 20:11, 22 April 2014


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


http://iam.colum.edu/oop/classsource/ConsoleApplicationCharacters.zip

browser http://iam.colum.edu/oop/browser/browser.aspx?f=/classsource/ConsoleApplicationCharacters/ConsoleApplicationCharacters/ConsoleApplicationCharacters

CharactersStrategy.PNG

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

Actor.png

Activity

something an actor does

Activity.png

Restaurant-UML-UC.png

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


CourseUseCase.png

Home work

Toastable project in moodle