Page 1 of 1

Java compiler nonsense: is not abstract and does not override abstract method + error: name clash have the same erasure, yet neither overrides the other

Posted: Fri Nov 20, 2015 8:57 am
by 3ICE
Your code:

Code: Select all

class DenseGraph <E extends Edge> extends Graph {
Problem: You forgot an <E> from the end.

Fix:

Code: Select all

class DenseGraph <E extends Edge> extends Graph<E> {