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

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.

主站蜘蛛池模板: 项城市| 开化县| 延川县| 霍州市| 平湖市| 阿尔山市| 云林县| 巴楚县| 贵港市| 乾安县| 辽阳市| 三台县| 林口县| 玛曲县| 金溪县| 贡嘎县| 湖南省| 临沂市| 景谷| 洪雅县| 安图县| 南木林县| 姚安县| 紫云| 集贤县| 遂川县| 江孜县| 香格里拉县| 婺源县| 梧州市| 孝昌县| 卢氏县| 茂名市| 札达县| 大埔区| 西吉县| 佛坪县| 平凉市| 南江县| 张家界市| 镇康县|