Sobes.tech
Junior — Senior

What will be output to the console (example 2)

livecode

Task condition

Determine which text will appear in the program output and explain why it is displayed.

protocol Test {
    func test()
}
extension Test {
    func test() { print("A") }
}

struct Cat: Test {
    func test() { print("C") }
}

var obj: Test = Cat()
obj.test()