Originally Posted by
king000000
ok thanks for that but i still cant compile the program and would really like to test it can you quicky add the code needed for these methods please:
you do relise that these getters and setters are the very basic of OO programming, do you?
it's no use trying to write a MediaPlayer, no matter how simple, if you haven't got the hang of those yet. anyway, here you are, and I'm just guessing you've been respecting the naming conventions
public void setTrack(int trackNumber)
{
this.track = trackNumber;
// although I must say this.trackNumber = trackNumber sounds more logical, but then
// it would be setTrackNumber(int trackNumber)
}
public String getTrackName()
{
return this.trackName;
}
public String getTrackInfo()
{
return this.trackInfo;
}