Car


iOS Swift Public New

Easy  

3min


Consider the following Swift definition of the structure Car:

struct Car {
    var color:UIColor?
    let model:String
    
    init(model:String) {
        self.model = model
        self.color = nil
    }

    mutating func changeColor(color:UIColor) {
        self.color = color
    }
}

Select all the statements that are correct.