iOS Swift - Swift Language Essentials
How do you correctly declare a Swift struct named
Car with a property model of type String?Car with a property model of type String?struct, followed by the name and curly braces.var model: String.class, not a struct. struct Car() { var model: String } has invalid syntax with parentheses after the struct name. struct Car { let model } omits the type for model, which is invalid.struct Name { } syntax [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions