D
Dansk
Hi all,
I've just found a strange (for me) family relationship with classes and
interface.
Here is a simple code sample :
namespace Test
{
public interface IFoo
{
void Foo();
};
public class A
{
public void Foo()
{
}
};
public class B : A, IFoo
{
};
}
The C# compiler seems happy and after some tests and debugging, all
"seems" ok.
What do you think about that ?
Elegant pattern or coding horror ?
Thanks for your advices.
I've just found a strange (for me) family relationship with classes and
interface.
Here is a simple code sample :
namespace Test
{
public interface IFoo
{
void Foo();
};
public class A
{
public void Foo()
{
}
};
public class B : A, IFoo
{
};
}
The C# compiler seems happy and after some tests and debugging, all
"seems" ok.
What do you think about that ?
Elegant pattern or coding horror ?
Thanks for your advices.