本文介绍了C#中继承,多态性和接口的恰当示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想知道是否有人知道一个C#程序,该程序演示了C#中的继承和多态性(以及可能的接口).我看过很多书,虽然它们给出了小的编码示例,但我似乎找不到更多的真实世界"示例.我了解了这些主题的内容,但是(为了我自己的利益)发现编写代码很困难,而又看不到大量的代码.谢谢Brian,

解决方案


您最好阅读一本书或其他教程-现实世界中的应用程序假定您知道这些知识,因此不会尝试向您展示您想看的东西!这样一来,甚至很难看清事情为何按原样完成.



Hi,

I was wondering if anyone knows of a C# program out there which demonstrates Inheritance and Polymorphism (and possibly Interfaces) in C#. I''ve looked at many books and while they give small coded examples, I can''t seem to find a more ''real world'' example. I get what these topics are about but am finding it tough to write code (for my own interest) without seeing something with a good amount of code.Thanks, Brian.

解决方案



这篇关于C#中继承,多态性和接口的恰当示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 10:47