P
puzzlecracker
Hello,
I am getting these errors:
===================
1) " type Bar does not implement interface IFoo"
2)and cannot call base.DoA();
From this code:
===========
public interface IFoo
{
void DoA();
void DoB();
}
public class Foo:IFoo
{
void IFoo.DoA()
{
}
void IFoo.DoB()
{
}
}
public class Bar:Foo
{
void IFoo.DoA()
{
base.doA();
}
void IFoo.DoB()
{
base.doB();
}
}
I am using C# 2.0.
What am I doing wrong? How to fix this? ThaNKS
I am getting these errors:
===================
1) " type Bar does not implement interface IFoo"
2)and cannot call base.DoA();
From this code:
===========
public interface IFoo
{
void DoA();
void DoB();
}
public class Foo:IFoo
{
void IFoo.DoA()
{
}
void IFoo.DoB()
{
}
}
public class Bar:Foo
{
void IFoo.DoA()
{
base.doA();
}
void IFoo.DoB()
{
base.doB();
}
}
I am using C# 2.0.
What am I doing wrong? How to fix this? ThaNKS