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

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
主站蜘蛛池模板: 沈阳市| 无棣县| 嘉善县| 兖州市| 平山县| 法库县| 鄂州市| 额敏县| 珲春市| 福清市| 习水县| 永靖县| 台南市| 天祝| 阳高县| 扎鲁特旗| 宁阳县| 望城县| 南华县| 漾濞| 江津市| 大邑县| 甘泉县| 兰州市| 黔江区| 江永县| 多伦县| 微山县| 中卫市| 咸丰县| 额尔古纳市| 巴里| 杭州市| 黑龙江省| 道真| 黄骅市| 青川县| 南皮县| 莒南县| 城口县| 同心县|