File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Calling Superclass Methods and Forgetting to Use the Return Value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Calling Superclass Methods and Forgetting to Use the Return Value " Watch "Calling Superclass Methods and Forgetting to Use the Return Value " New topic
Author

Calling Superclass Methods and Forgetting to Use the Return Value

melvin bernabe
Greenhorn

Joined: Sep 12, 2004
Posts: 2
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);
}
}


nhivlem...
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138


Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
 
Don't get me started about those stupid light bulbs.
 
subject: Calling Superclass Methods and Forgetting to Use the Return Value
 
Similar Threads
toString()
hash code
modifying enums
Regarding Borders..
printing an arrayList