Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
1k views

Programming against interfaces in Java

Supposing I have an interface Foo and a given implementation FooImpl. public class FooImpl implements Foo If I want to define a new operation on this class that depends on the particular ...
dabd's user avatar
  • 161
1 vote
1 answer
1k views

Static methods vs Interface implementation

Here is my problem: I stared to create an e-commerce web site info collector. So I created a parser for each site. The parser class is stateless. I have got methods like: getItemPrice(WebElement ...
USer22999299's user avatar
0 votes
3 answers
1k views

Refactoring - Utility classes behavior under a common interface

I was suggested to put my question here, so I'm doing so ;) I need a common interface which represents some specific behavior: public interface Contract(){ public void methodA(); public void ...
radekEm's user avatar
  • 365