iOS Swift - Swift Language Essentials
Examine this Swift code:
What is the issue with the
protocol Drawable {
func draw()
}
class Shape: Drawable {
func draw(color: String) {
print("Drawing with color \(color)")
}
}What is the issue with the
Shape class implementation?