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

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.

主站蜘蛛池模板: 怀安县| 呼图壁县| 平昌县| 阳谷县| 资溪县| 深州市| 郑州市| 秦安县| 江川县| 成武县| 华坪县| 调兵山市| 林芝县| 闵行区| 普安县| 鄱阳县| 临潭县| 辽宁省| 周口市| 吉林省| 彭泽县| 郴州市| 太保市| 磴口县| 临沭县| 宁津县| 邹城市| 镇宁| 海宁市| 铜鼓县| 铁力市| 翼城县| 溧阳市| 甘德县| 长子县| 麟游县| 平顶山市| 连云港市| 道真| 仪陇县| 辽宁省|