我想让我的一些类(而不是所有类)遵循“仅类协议”。 我正在做的是
protocol RefreshData: class, ClassA, ClassB
{
func updateController()
}
我遇到了错误
non class type 'RefreshData cannot inherit from classA
non class type 'RefreshData cannot inherit from classB
我不确定我是否完全按照文档的要求操作。有人对此有什么想法吗?
protocol SomeClassOnlyProtocol: class, SomeInheritedProtocol
,在class,
之后的SomeInheritedProtocol
是什么意思?我认为它是类的占位符。 - tonytran