mnml wrote:
...
ok then I have a Parent class : Elements
Elements? What does that mean?
and i have a child class : Player
I could understand Player being sub-classed to
PokerPlayer and FootBallPlayer, or perhaps
AudioPlayer and VideoPlayer, but what is the
relationship between an 'Element' and a Player?
( If it makes sense to have the Element access the
attributes within a method, perhaps they should be
attributes of Element, rather than Player. And as
an aside, how would the Player class in my example,
decide whether to use the defaultPlayTime of, for
example, AudioPlayer or VideoPlayer? )
BTW
- The word 'I' should always be upper case.
- 'OK' is also upper case.
- A ..
- Function in Java is more commonly referred to as a method.
- Variable -> attribute
--
Andrew Thompson
http://www.physci.org/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200712/1