摘要: 1、我们在Main()函数中,调用Test()函数,我们管Main()函数称之为调用者,管Test()函数称之为被调用者。 如果被调用者想要得到调用者的值: 1)、传递参数。 2)、使用静态字段来模拟全局变量。 public static int _number = 10; 如果调用者想要得到被调用 阅读全文
posted @ 2023-07-24 09:16 它的眼角开过光 阅读(7) 评论(0) 推荐(0) 编辑