Class Diagram
Class Diagram
Payment
0..* +validate() : String
Mouse Keyboard
-numberOfButtons : int -layout : LayoutType Customer
-deviceType : MouseType -deviceType : KeyboardType -basket : List<Product>
+getCheckoutCost() : float 1
+getNumberOfButtons() : int +getLayout() : LayoutType
+getDeviceType() : MouseType +getDeviceType() : KeyboardType +checkout() PayPal CreditCard
+getProducts() : List<Product> -email : String -cardNumber : String
+addToBasket() -securityCode : String
+validate() : String
+getBasket() : List<Product>
+validate() : String
+clearBasket()
<<enumeration>> <<enumeration>> <<enumeration>>
MouseType KeyboardType LayoutType
STANDARD STANDARD UK
GAMING GAMING US
FLEXIBLE