Current Forum: Homework 1 Forum |
Date: Sun Sep 9 2001 10:53 am |
Author: Scherer, Sebastian <sebastian.scherer@cs.cmu.edu> |
Subject: Re: casting problems |
|
|
Hi! Don't forget that you want to implement the interface Node. public class DivNode implements Node //<- This is important { } If you don't implement the interface then the Compiler thinks that Node and DivNode are of different type. (What they also are, but they have the interface Node in common) I hope this helps cu
Basti
|
|