Assuming you have this:
public interface A
{
public void methodA();
}
public interface B
{
public void methodB();
}
public class C implements A,B
{
public void methodA(){...}
public void methodB(){...}
}
You should be able to do this:
A a = new C();
a.methodA();
but not this:
a.methodB()
On the other hand, you can do this:
B b = new C();
b.methodB();
but not this:
b.methodA();
EDIT:
This is because you define object a as of being an instance of A. Although you are using a concrete class for the initialization (new C()), you are programming to an interface so only the methods defined in that interface will be visible.