Ok I am sure I am missing something really, really simple, but I am stuck.
Hypothetical:
I have an interface I wish to make public for people to develop against. Let's say it's an mp3 player. I want to let them know what it can do, without revealing how I do it.
So I have:
public interface IPlayer()
public void play()
then I have the implementation
public class MP3Player implements IPlayer
public void play() {
// my wonderful magical code here
}
Now the person using my interface to play the song does something like
IPlayer.play();
So my question is, what do I do on my end to link the 3 classes together? I obviously do not want to expose the second part of code, so how do I release this API and link it to my code?
Any help is greatly appreciated.