I need to have a variable of the type of whatever class implements an interface.
For example:
Bar would be classThatImplementsFoo.Code:public interface Foo{
public classThatImplementsFoo foo;
}
public class Bar implements Foo{
public Bar foo;
}
How do I do this?
