Question 1/12: This code defines a valid class – true or false?
Hint: Click to show.
class Painting {
var title: String
var artist: String
var paintType: String
func init(title: String, artist: String, paintType: String) {
self.title = title
self.artist = artist
self.paintType = paintType
}
}
Link copied to your pasteboard.