Discussion Board
Go to the previous messageThere are no next messages
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
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
casting problems      Kwok, Jonathan Chong-Xue      Sat Sep 8 2001 5:07 pm       
Re: casting problems      Scherer, Sebastian      Sun Sep 9 2001 10:53 am       

Back to previous screen