What output will be produced by the code below?
final class Dog {
func bark() {
print("Woof!")
}
}
class Corgi : Dog {
override func bark() {
print("Yip!")
}
}
let muttface = Corgi()
muttface.bark()
What output will be produced by the code below?
final class Dog {
func bark() {
print("Woof!")
}
}
class Corgi : Dog {
override func bark() {
print("Yip!")
}
}
let muttface = Corgi()
muttface.bark()
© 2017 QuizBucket.org