“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Yl Ong wrote:I thought an interface cant initiate an instance?
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Yl Ong wrote:In my example WorkoutListListener is a interface then isnt listener an instance of WorkoutListListener?
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Yl Ong wrote:why in the onAttach method we have to cast the interface to the activity?
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
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
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|