我收到以下错误
javac MyCollection.java ./au/edu/uow/Collection/CollectionFactory.java:109:
cannot access au.edu.uow.Collection.DVDAlbum
bad class file: ./au/edu/uow/Collection/DVDAlbum.java
file does not contain class au.edu.uow.Collection.DVDAlbum
Please remove or make sure it appears in the correct subdirectory of the classpath.
DVDAlbum dvd = new DVDAlbum(tempTitle,tempGenre, tempDirector, tempPlot);
从以下代码
package au.edu.uow.Collection;
import java.util.ArrayList;
import java.io.*;
public class CollectionFactory{
DVDAlbum dvd = new DVDAlbum(tempTitle,tempGenre, tempDirector, tempPlot);
}
这是 DVDAlbum 的实现
import au.edu.uow.Collection.Album;
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;
}
}
任何帮助将非常感激