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

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
主站蜘蛛池模板: 神池县| 东海县| 油尖旺区| 靖安县| 绵竹市| 霍邱县| 固镇县| 丹巴县| 二手房| 新巴尔虎右旗| 梨树县| 峨边| 周至县| 赫章县| 大宁县| 甘德县| 巢湖市| 界首市| 赞皇县| 南部县| 囊谦县| 房产| 吉安县| 寿宁县| 贡觉县| 连山| 台东县| 钦州市| 确山县| 拜城县| 庄浪县| 乡城县| 新绛县| 英超| 公主岭市| 铜川市| 汉源县| 抚顺县| 玉林市| 平果县| 漾濞|