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

Classes versus structures

This section compares classes and structures:

  • Inheritance enables one class to inherit the characteristics of another
  • Type casting enables us to check and interpret the type of a class instance at runtime
  • De-initializers enable an instance of a class to free any resources it has assigned
  • Reference Counting allows more than one reference to a class instance
  • Structures are value types so they are always copied when they are passed around in code
  • Structures do not use Reference Counting
  • Classes are reference types
主站蜘蛛池模板: 宝丰县| 恭城| 松潘县| 集贤县| 禹州市| 巴彦淖尔市| 西峡县| 灵石县| 延吉市| 南涧| 纳雍县| 邵阳市| 涿州市| 若羌县| 砀山县| 黑龙江省| 汤原县| 利辛县| 漠河县| 兰溪市| 阳江市| 黄龙县| 淮滨县| 肇庆市| 乐东| 通榆县| 台前县| 泌阳县| 临邑县| 富民县| 乐业县| 合川市| 遵义市| 盐亭县| 金阳县| 万源市| 三门峡市| 富蕴县| 清涧县| 扶绥县| 闽清县|