扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:黎宇授权 来源:论坛 2007年11月13日
关键字:
interface IControl { void Paint( ) ; class Control: IControl void IControl.Paint( ) {…} class MyControl: Control, IControl public void Paint( ) {} } |
using System ; interface IMethods { void F( ) ; void G( ) ; void H( ) ; void I( ) ; } class Base: IMethods { void IMethods.F( ) { } void IMethods.G( ) { } public void H( ) { } public void I( ) { } } class Derived: Base, IMethods { public void F( ) { } void IMethods.H( ) { } } |
using System ; interface IBase { void F( ) ; } interface IDerived: IBase { void G( ) ; } class C: IDerived { void IBase.F( ) { //对F 进行实现的代码… } void IDerived.G( ) { //对G 进行实现的代码… } } class D: C, IDerived { public void F( ) { //对F 进行实现的代码… } public void G( ) { //对G 进行实现的代码… } } |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。