interface IRingSquence:ISquence,IRing{}
class C
{
void Test(IRingSquence rs){ //问题在这里....
rs.Count=1;
}
}
还有些类也是这样的格式,也不是很明白:
public class Baby
{
float Temprature;
public event BabyIllEventHander BabyIsILL; public void BabyFallIll()
{ if (this.Temprature!=37) { BabyILLEventArgs e=new BabyILLEventArgs(temprature);
BabyIsIll(this,e); }
}
}
public class Adult
{
public Adult(Baby baby) //问题在这里....
{
baby.BabyIsIll+=new BabyIllEventHandler(GoToHospital);
}
}各位高手帮帮忙啦~~,谢谢了.....
class C
{
void Test(IRingSquence rs){ //问题在这里....
rs.Count=1;
}
}
还有些类也是这样的格式,也不是很明白:
public class Baby
{
float Temprature;
public event BabyIllEventHander BabyIsILL; public void BabyFallIll()
{ if (this.Temprature!=37) { BabyILLEventArgs e=new BabyILLEventArgs(temprature);
BabyIsIll(this,e); }
}
}
public class Adult
{
public Adult(Baby baby) //问题在这里....
{
baby.BabyIsIll+=new BabyIllEventHandler(GoToHospital);
}
}各位高手帮帮忙啦~~,谢谢了.....
Test(IRingSquence rs)实际调用时,传入的可以是任何实现IRingSquence接口的类的对象,这个类是可以实例化的~