• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Superclass Methods and Forgetting to Use the Return Value

 
melvin bernabe
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone help me with my code..I wants to include the superclass toString() result in the subclass toString() result..
here is the my code:
****************************************************************************
public class GraphicalRectangle extends Rectangle {
Color fillColor;
boolean beveled;
...
public String toString() {
super();
return("color=" + fillColor + ", beveled=" + beveled);
}
}
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic