swift 中 Class 和 Static 的区别

Class 和 Static 都表示的是类方法。 无须初始化,Class 和 Static 的区别是 Class 可以被继承者重写。而Static 是不能够被重写的。

你可能感兴趣的:(swift 中 Class 和 Static 的区别)