Programming, Swift, Object Oriented, Objective C.
Canvas { func draw() { print("width: \(width), height: \(height)") } } class DisplayCanvas: Canvas { override func draw() { print("width: \(width), height: \(height), color space: \(colorSpace)") } } let canvas: Canvas = DisplayCanvas() canvas.draw() width: 320, height: 240, color space: