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

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
主站蜘蛛池模板: 大关县| 通渭县| 项城市| 铜陵市| 高邮市| 平山县| 台南县| 商南县| 长沙市| 磐安县| 临西县| 昭通市| 武夷山市| 五寨县| 开江县| 五寨县| 聊城市| 延安市| 同江市| 桃园市| 吉林省| 斗六市| 扬州市| 延津县| 哈密市| 溧阳市| 越西县| 城步| 萝北县| 崇仁县| 襄樊市| 盐边县| 拉萨市| 连南| 翁牛特旗| 达拉特旗| 仙桃市| 松潘县| 崇礼县| 清水河县| 高碑店市|