Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
hello I would like to know about the interface Enumeration. since Interfaces has methods which are abstract(not defined). how is it that we find this code running. Enumeration e=//+a code that returns Enumeration object. while(e.hasMoreElements()) { e.nextElement(); } my doubt is .how could we call the undefined methods of the Enumeration interface without declaring it in any way. e.hasMoreElements(); e.nextElement(); pls help. vijay
This is the whole point of interfaces. By using the interface Enumeration, you are indicating that you don't care which actual class the object returned is an instance of, only that it implements Enumeration. Consider the following code sample: