Monday, November 16, 2009

The superclass Student contains:?

The superclass Student contains:


a constructor that accepts a String corresponding to the name of the school the student attends


a toString method that returns 'student at X' where X is the name of the school the student attends.


write a class definitions for the subclass HighSchoolStudent containing:


a constructor accepting a String which is used as a parameter to the superclass constructor


a toString method that returns 'high school student at X'. THis method must use the toString method of its superclass.

The superclass Student contains:?
I know java and i know what you mean.





But what is your question?


No comments:

Post a Comment