I have created one interface and declared methods and in my model class i have implemented interface and methods have been defined.
Now in my other constructor class i'm injecting this interface and invoking its methods then its giving error as cannot instantiate interface ...
. However if i use my model class in the constructor which is implemented interface methods then its working fine.
But i have noticed that customer interface can inject in any class constructor and able to call its methods.
So please help me on how to inject interface in any class constructor and calling its methods.