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

How it works...

Abstraction has allowed us to define a common set of functionality that is to be shared among all the classes that derive from the abstract classes. The difference between inheriting from the abstract class and a normal class is that with an abstract class, you have to implement all the methods defined in that abstract class.

This makes the class easy to version and change. If you need to add new functionality, you can do so by adding that functionality to the abstract class without breaking any of the existing code. Visual Studio will require that all inherited classes implement the new method defined in the abstract class.

You can, therefore, be assured that the change applied will be implemented in all your classes that derive from the abstract classes in your code.

主站蜘蛛池模板: 交城县| 七台河市| 玉田县| 金平| 微山县| 壤塘县| 伊宁市| 宁晋县| 永宁县| 壶关县| 杭锦后旗| 南陵县| 衡南县| 天全县| 青川县| 陆川县| 南通市| 子洲县| 北海市| 孙吴县| 革吉县| 成武县| 中西区| 龙井市| 涟水县| 察隅县| 霍林郭勒市| 曲松县| 应城市| 文水县| 越西县| 司法| 福建省| 沙坪坝区| 延吉市| 上杭县| 大竹县| 台北市| 益阳市| 稻城县| 纳雍县|