Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Steven Wood   on Jan 11 In Java Category.

  
Question Answered By: Abasi Massri   on Jan 11

_function() has a local parameter named "target" that hides
your instance member "target". You'll either need to change the
parameter name OR use "this.target" to set the instance member.

Also, be careful attempting side-effects like this. It can make the
code much more difficult to maintain.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Pass By Reference Or get search suggestion and latest updates.


Tagged: