I have an interface Interface1
. I have its implementation Imple implements Interface1
(all methods have been implemented :) ).
Now, consider a third class CheckCall
, can I do a call in the class CheckCall
like I mention below :
Interface1 interface1;
interface1.method();
All necessary imports have been done. Please tell me is it possible or not , if not then ok and if yes, then tell me what will happen if I've more than one implementing classes for the same interface and I'm doing the same call.