更新时间:2023-11-10 08:04:46
因为要在表单类的实例中实例化它们.这段代码大部分都是有延迟的,没有任何意义,一个基本的控制台应用程序是学习此概念的一种更好的方法,而不是那么分心.您处于静态方法中,它没有状态,因此对象不存在于main内部,而是仅存在于该类的INSTANCE内部.
Because you''re instantiating them inside the instance of the form class. This code is mostly retarded, it makes no sense, a basic console app is a better way to learn this concept, not as many distractions. You''re in a static method, it has no state, so the objects don''t exist inside main, they only exist inside an INSTANCE of the class.