this is my attempt at implementing an interface.
im getting the following error
javac MyCollection.java
./au/edu/uow/Collection/DVDAlbum.java:6: cannot find symbol
symbol: class Album
public class DVDAlbum implements Album{
this is the super class
package au.edu.uow.Collection;
public interface Album {
String getMediaType();
String getTitle();
String getGenre();
}
And this is the sub class
public class DVDAlbum implements Album{
private String Title;
private String Genre;
private String Director;
private String Plot;
private String MediaType;
public DVDAlbum(String TempTitle, String TempGenre, String TempDirector, String TempPlot){
Title = TempTitle;
Genre = TempGenre;
Director = TempDirector;
Plot = TempPlot;
}
String getMediaType(){
return MediaType;
}
String getTitle(){
return Title;
}
String getGenre(){
return Genre;
}
}
http://www.javabeginner.com/learn-java/java-abstract-class-and-interface This was the reference i used but its not working for me.