how to create variable property in protocol where as {get set} for one classand {get} for another class

前端 未结 0 788
南旧
南旧 2020-12-09 09:04
protocol SomeProtocol {
    var mustBeSettable: String { get set }
}

class Stage1: SomeProtocol {
    //Here "mustBeSettable" should be {get set}
}

class         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题