我在学习接口碰到这样的问题,求高手解决!
以下是代码:
using System;
using System.Collections.Generic;
using System.Text;namespace 接口的继承1
{
interface IMyInterface
{
void SayHello();
string Hello
{
get;
set;
}
}
class MyClass : IMyInterface
{
}
}
以下是代码:
using System;
using System.Collections.Generic;
using System.Text;namespace 接口的继承1
{
interface IMyInterface
{
void SayHello();
string Hello
{
get;
set;
}
}
class MyClass : IMyInterface
{
}
}
实现了接口 就要实现接口中的方法
IMyInterFace中有个属性和方法
由于缺少调试目标“E:\c#2.0完全自学手册\练习\接口的继承1\接口的继承1\bin\Debug\接口的继承1.exe”,Visual Studio 无法开始调试。请生成项目并重试,或者相应的设置OutputPath和AssemblyName属性使其指向目标程序集的正确位置。