【发布时间】:2014-08-31 03:36:15
【问题描述】:
这三个代码有什么区别?
1.
Window a = new Window ();
a.Show (); // call show
Application b = new Application ();
b.Run (); // call without a
2.
Window a = new Window ();
// do not call show
Application b = new Application ();
b.Run (a); // with a
为什么两者都能正常工作?为什么也要这样做? 3.
Window a = new Window ();
a.Show (); // call show and also call show bellow
Application b = new Application ();
b.Run (a); // with a
【问题讨论】: