I have an interface, 2 class
public interface ITest
{
void Method1(){}
void Method2(){}
}
public class Test1 : ITest
{
//Just implement Method1() (how can I just implement Method1() without implementing Method2()?)
public string Method1()
{...}
}
public class Test2 : ITest
{
//Implement both Method1() & Method2()
public string Method1()
{...}
}
For the request, I must add more method called Method3() to the interface, my interface should be:
public interface ITest
{
void Method1(){}
void Method2(){}
void Method3(){}
}
Must I add Method3() to both class Test1 & Test2, can I just add when I need.
Many Thanks