I have an interface with two methods
interface IFoo{
void FooOne(A,B,C);
void FooTwo(D,E,F);
}
Now there are two implementation class which extends this interface. One is as follows:
class Foo1 implements IFoo{
void FooOne(A,B,C);
void FooTwo(D,E,F);
}
Other one is as follows :
class Foo2 implements IFoo{
void FooOne(A,B,C);
void FooTwo(D,E,F);
}
Now Foo2 class dosen't needs parameter E at all. Parameter E is only required for class FOO1. So it's somehow ambious why this parameter is passed to class Foo2. So is there some another way so that I can do something like for class Foo2.
class Foo2 implements IFoo{
void FooOne(A,B,C);
void FooTwo(D,F);
}