在类A中实现了某些接口,以后在继承类A时也会一起继承所有接口的实现,而不需要在继承类中显式地进行接口的实现。除非在继承类中想要改变父类的接口实现。具体的代码如下所示:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
在类A中实现了某些接口,以后在继承类A时也会一起继承所有接口的实现,而不需要在继承类中显式地进行接口的实现。除非在继承类中想要改变父类的接口实现。具体的代码如下所示:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1