Welcome Guest, Not a member yet? Register   Sign In
Assign data variable in the constructor?
#4

[eluser]gtech[/eluser]
It makes sense to put variables in the constructor when you are sharing the variable across the class functions, if its scope is only within the function itself then it makes sense to put it in the function.


Messages In This Thread
Assign data variable in the constructor? - by El Forum - 05-17-2008, 08:08 AM
Assign data variable in the constructor? - by El Forum - 05-17-2008, 08:40 AM
Assign data variable in the constructor? - by El Forum - 05-17-2008, 09:00 AM
Assign data variable in the constructor? - by El Forum - 05-17-2008, 09:04 AM
Assign data variable in the constructor? - by El Forum - 05-17-2008, 10:35 AM
Assign data variable in the constructor? - by El Forum - 05-17-2008, 12:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB