Skip to content

Instantly share code, notes, and snippets.

Last active Feb 25, 2017
What would you like to do?
class Biriyani {
let count: Int
let size: OrderSize
let spiceRange: SpiceRange
let type: BiriyaniType
init (count: Int = 1, size: OrderSize = .medium, spiceRange: SpiceRange = .spicy, type: BiriyaniType = .nonveg) {
self.count = count
self.size = size
self.spiceRange = spiceRange
self.type = type
class Restaurant {
var biriyaniOrder1 = Biriyani(size: .medium, spiceRange: .extraHot)
var biriyaniOrder2 = Biriyani(spiceRange: .extraHot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment