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

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.

主站蜘蛛池模板: 瑞金市| 武汉市| 阜新| 石柱| 育儿| 达拉特旗| 读书| 方城县| 陈巴尔虎旗| 光泽县| 白银市| 奉节县| 淅川县| 车致| 江孜县| 开原市| 香格里拉县| 探索| 固始县| 白水县| 瓦房店市| 永兴县| 屏东市| 九江市| 和田县| 芜湖市| 鄢陵县| 迭部县| 秭归县| 华蓥市| 贡觉县| 张掖市| 金川县| 云龙县| 张北县| 台湾省| 三台县| 鄄城县| 社旗县| 闵行区| 涿鹿县|