Top.Mail.Ru
November 14th, 2004 - Java developers — LiveJournal
? ?

Java developers

November 14th, 2004
 

06:48 pm - reuptake

In class we've been working with Packages and recursion.

I have two constructors -- public Phrase (Word word, Phrase suffix) and public Phrase (Word word).

Now, I'm not used to seeing Constructors like this. I thought it had to be String word, String Suffix. But then again, we're working with packages. I have a package "student" in which my Word class is in. Should I put my Phrase class in the student package, or should I put it in a student.Phrase package? Phrase is supposed to inherit some error checking from the Word class, but I'm not doing this correctly.

Here's my code, I've placed in comments a description of the other aspects of the program I haven't described here. :)
CodeCollapse )

Any clues on what I'm doing wrong? I'm really confused. Thanks!

Powered by LiveJournal.com