import Foundation
protocol A {
func show() -> Void
}
protocol B {
func eat() -> Void
}
protocol C: A,B{
func run() -> Void
}
class One: A {
func show() {
print("A类的show方法")
}
}
class Tow: B {
func eat() {
print("吃")
}
}
class Three: C {
func show() {
print("A类的show方法")
}
func eat() {
print("吃"</
Swift协议合成
最新推荐文章于 2024-07-23 16:27:11 发布