struct TV {
var size: Int
var type: String
init(size: Int, type: String) {
self.size = size
self.type = type
}
}
Using the TV
class
var newTV = TV(size: 65, type: "LED")
Comments
struct TV {
var size: Int
var type: String
init(size: Int, type: String) {
self.size = size
self.type = type
}
}
Using the TV
class
var newTV = TV(size: 65, type: "LED")