I have this interface:
public interface Animal { public void Eat(String name); }
And this code here implements the interface:
The Interface Animal acts as the data type to the class Dog. You're actually instantiating the Dog class not the interface or it's data type.