Skip to content

Instantly share code, notes, and snippets.

@phstc phstc/newie.java
Created Dec 9, 2010

Embed
What would you like to do?
public interface Dao {}
public class JpaDao implements Dao {}
public class ProductService {
private Dao dao;
public ProductService(Dao dao){
this.dao = dao;
}
}
new ProductService(new JpaDao());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.