func show() {
print("It is class Car1")
}
}
class Car2: Car1{
override func show() {
print("It is class Car2")
}
}
class Car3: Car2{
override func show() {
// how call Car1.show() in this func
print("It is class Car3")
}
}
https://stackoverflow.com/questions/35870781/swift-inheritance-supers-super
Обсуждают сегодня