Not exactly. The Player object is passed to the method as a parameter. It must be an existing object before calling this method. Besides this was not designed to be a copy-paste-into-code example....
Type: Posts; User: jps
Not exactly. The Player object is passed to the method as a parameter. It must be an existing object before calling this method. Besides this was not designed to be a copy-paste-into-code example....
A method could just call the three in the methods in the order you wanted to display them.
public void displayAllThree(Player myPlayer) {
myPlayer.displayRace();
myPlayer.displayHealth();
...