Originally posted by RohitR Kulkarni:
what exactly an interface object contains when we declare it to achieve correct method invocation?
how it correctly works?
suppose i have two interfaces each having one method with same method name.
a class implements this interface. how using an interface object and assigning that object a class object calls the method from that interface only???
An interface is just a specification, a skeleton, there is no body, there is no implementation. You would feel its importance only at
runtime.