I’m following an Android course on Udacity and I encountered this code:
We are getting a List object but I don’t understand where is the logic of the methods in the interface. I know that
is an interface (
) and it defines some methods like
that don’t have a logic. I can understand this work if I would call a class like
in Java that implements the interface and implements its methods, but how does it work here?