官术网_书友最值得收藏!

Inheritance

A class can inherit methods, properties, and other characteristics from another class:

class SomeSubClass: SomeSuperClass 

Swift classes do not inherit from a universal base class. Classes that we define without specifying a superclass automatically become base classes for us to build on. To override a characteristic that would otherwise be inherited, we prefix our overriding definition with the override keyword. An overridden method, property, or subscript can call the superclass version by calling super. To prevent overrides, the final keyword can be used.

主站蜘蛛池模板: 孟州市| 泰宁县| 桦南县| 略阳县| 邻水| 巫山县| 比如县| 彭泽县| 博乐市| 宁晋县| 达拉特旗| 加查县| 北京市| 太和县| 西和县| 云安县| 九龙坡区| 邓州市| 宁强县| 抚宁县| 奉化市| 疏附县| 临泽县| 察雅县| 保康县| 浦东新区| 时尚| 琼海市| 漳浦县| 东乡| 商河县| 广水市| 鄂托克前旗| 揭阳市| 古丈县| 正安县| 阳高县| 库伦旗| 阜新市| 视频| 镇江市|