Yl Ong wrote:I thought an interface cant initiate an instance?
Yl Ong wrote:In my example WorkoutListListener is a interface then isnt listener an instance of WorkoutListListener?
Yl Ong wrote:why in the onAttach method we have to cast the interface to the activity?
Yl Ong wrote:WorkoutListListener listener;
Isnt this initialising an instance of the interface?
Yl Ong wrote:do you mean that listener might be a class as it is a instance of WorkoutListListener