Jump to content

Is redeclaring variables redundant?


Omirion

Recommended Posts

well it depends... if you just use string then it is accessible to other methods within your object.  What you are doing there is creating a copy that is local and accessible only to that specific function.  IOW it is a question/matter of variable scope requirements.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.