- Oct 22, 2003
- 204
- 0
- 0
I have a nested class
public class BST{
private class NodeQueue extends Queue{ ETC ETC
public Comparable addThis(){
return((Queue)this).peek());}
}
}
peek() is defined in QUEUE, but I cannot get it to recognize this method in the nested class.
Any ideas why it woudn't recognize an inherited method?
public class BST{
private class NodeQueue extends Queue{ ETC ETC
public Comparable addThis(){
return((Queue)this).peek());}
}
}
peek() is defined in QUEUE, but I cannot get it to recognize this method in the nested class.
Any ideas why it woudn't recognize an inherited method?