G'day all, I have a Player class, which inherits from an ArmedHumanoids class, which inherits in turn from a Humanoids class.
Where and when should I create the Player object so that it is accessible in all my other classes - for example, a selectPlayerRace class?
I know that by extending the Player class it becomes accessible, but I am thwarted because all my other classes extend JFrame. There can be only one extension, not two.
At the moment the NetBeansIDE complains that it cannot locate the Player object when I code for it in selectPlayerRace, after creating the Player object in my Main class.
Obviously, it is happier when I create the Player object in the selectPlayerRace class, but then I can't access the Player object in all my other classes as it is internal to selectPlayerRace.
The Player object is intended to be a universal object accessible in all my other classes. I'm sorry for this dreadfully newbieish question, but I can't figure it out.