Open (w_employee)
And
W_employee lw_win
Open (lw_win)
What is the difference between these two kinds of writing?
CodePudding user response:
No difference, and simply view, behind only some cases will use99% is in the front
CodePudding user response:
1. Open (w_employee)2. W_employee lw_win
Open (lw_win)
A big difference,
The second open Windows cannot direct reference, because it can open a lot of the same window
CodePudding user response:
I understand, so when you create a new window, the window is already declared a global variable.W_employee w_employee;
Of course, you can also
W_employee lw_win
Types are the same, only is a local one is global, don't know understand it right?
CodePudding user response:
The second floor of the right, the first writing can only open a window, the second of writing can open many of the same window, what is the principle behind them? Why is this?CodePudding user response:
There's a difference, although look effect on the difference is not big, but meaning is not the same as1.
Open (w_employee)
Pb will find w_employee first class definition, and then automatically instantiates an instance of the same name, then open, such as variable names are the same, at the same time can only open a name for the w_employee window instance
2.
W_employee lw_win
Open (lw_win)
Pb will find w_employee first class definition, and then a lw_win variables, according to a statement from w_employee open will instantiate an instance lw_wind,
CodePudding user response:
Which floor above made it very clear the oh, sit down sofa,CodePudding user response:
The