Search:

Type: Posts; User: jps

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    1,305

    Re: A Question About Merging Many Methods into One

    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....
  2. Replies
    3
    Views
    1,305

    Re: A Question About Merging Many Methods into One

    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();
    ...
Results 1 to 2 of 2