Added: 1 month ago
From: ElonCsProf
Views: 134
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (2)

Sign In or Sign Up now to post a comment!
  • they look like really good pref and I did change mine to them but I don't understand why prefix with the letter a?

  • @spychic101 Some try to avoid parameter shadowing. In other words if you have a class instance variable

     int bank in a setBank method should you have

    public void setBank(int bank) { this.bank = bank;

    }

    or would it be better to have

    public void setBank(int aBank) { bank = aBank;

    }

    One school of thought is the later is better for maintenance as you would not make the mistake of

    public void setBank(int bank) { bank = bank;

    }

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more