Answers for "abstract class in swift"

0

abstract class in swift

class Animal {
    func sound() {}
}

class Cat: Animal {
    override func sound() {
        print("miauw")
    }
}

class Dog: Animal {
    override func sound() {
        print("woof")
    }
}
Posted by: Guest on November-11-2021

Code answers related to "abstract class in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language