Urgent! Please help! This project is due soon and I can't continue until I know this! I'm trying to use an abstract class (SongComparator) like so:
SongComparator comparator = new SongComparator();
playlist_1. sort(comparator);
But the first line comes up with this error message: SongComparator is abstract; cannot be instantiated. But if I don't use the first line of code, the variable comparator is never defined. Please help. How do I use these?
2007-12-06
07:04:22
·
1 answers
·
asked by
wildbluefaerie
2
in
Computers & Internet
➔ Programming & Design