Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I don't see any relationship of your two classes.. You are not really using your super class anywhere.. you are creating a new button in your sub class which defeats the whole Idea of Extending.. create button in super class then in sublass add functionality to that button i.e buttonOne and subclass should return the same buttonOne.
Replies: |
Sponsored Links
|