摘要: 动物(animals)中的猫(cat)和狗(dog)都有咬(bit)的动作。请运用.net中对象的多态性技术展示猫咬和狗咬的动作。要求用C#代码实现。 namespace ConsoleApplication1{ interface animalBit { void bit(); } class Program { static voi... 阅读全文
posted @ 2006-04-18 21:56 forrestsun 阅读(308) 评论(0) 推荐(0) 编辑