posted 16 years ago
Hi Ranchers,
I just found a code-bit in which an inner interface is used in a class and it's implemented within a method, as below:
I am just curious to know what extra functionality do we achieve by using this syntax? We could have provided the same functionality by either:
a)Creating another private method and calling it from other methods within the same class, OR,
b)If the code is used at just one place then directly code it as part of "getCall()" method above.
So any thoughts on this might help me to understand the design approach.
Thanks,
Kamal Arora