I'm working in a project which contains the following interface
import ListIF;
public interface PlayListIF {
public ListIF<Integer> getPlayList();
public void addListOfTunes(ListIF<Integer> lT);
public void removeTune(int tuneID);
}
later on, another classes use
import PlayListIF
import PlayList
and later making an instace:
PlayListIF playlist = new PlayList();
Is there any differences between importing an interface or its implementation? What is the point of importing the interface?
Thanks