OCP

Run Settings
LanguageSwift
Language Version
Run Command
class Product{ /** Product entities */ }
class ShippingOrderService { func checkout(product: Product, type: ShippingType){ switch type { case ShippingType.JNE: /** do checkout product with this shipping type */ break case ShippingType.TIKI: /** do checkout product with this shipping type */ break case ShippingType.POSINDO: /** do checkout product with this shipping type */ break default: print("Unsupported shipping type") } } }
enum ShippingType { case JNE, TIKI, POSINDO }
Editor Settings
Theme
Key bindings
Full width
Lines