In my Graph class i extends a abstract class List(That extends comparable). I want to make object of list but don't want to implement (abstract)method in graph class.Whoever extends Graph must implement that method. How i can do this?
graph
public abstract class Graph<T> extends List<T>{
private List<List<T>> adjacencyList;
private int vertexNumber;
private boolean directed;
public Graph(int vertex,boolean directed)
{
vertexNumber=vertex;
this.directed=directed;
adjacencyList= new List<List<T>>()// The problem is here compiler wants the implementation of the abstract method.
createVertex(vertexNumber);
}