M
Martin Arvidsson \(Visual Systems AB\)
Hi!
I realy dont get the point of interfaces
If i have this code
Public class MyClass
{
Public MyClass()
{
}
Public string Text
{
Get { return xxx;}
Set { xxx = value;}
}
}
why on earth would i need or should i use an interface like this
interface MyInterface
{
stinrg Text
{
get;
set;
}
}
and declare myclass : myinterface?
I just don't see the point of doing this. I do the code once more anyhow in
the class...
Yes i am stupid, thats why i am asking
Regards
Martin
I realy dont get the point of interfaces
If i have this code
Public class MyClass
{
Public MyClass()
{
}
Public string Text
{
Get { return xxx;}
Set { xxx = value;}
}
}
why on earth would i need or should i use an interface like this
interface MyInterface
{
stinrg Text
{
get;
set;
}
}
and declare myclass : myinterface?
I just don't see the point of doing this. I do the code once more anyhow in
the class...
Yes i am stupid, thats why i am asking
Regards
Martin