函数调用

来源:互联网 发布:淘宝买家注册 编辑:程序博客网 时间:2024/06/01 07:51
public class Test1 {

public static void main(String[] args) {
System.out.println("this is test1_main");


Test2 test2 = new Test2();
test2.testGet(123);


System.out.println(new Test2().sum(234,22));


System.out.println("static: " + Test2.a + ",,," + Test2.sum(5,6));


/*
Test2 test22 = new Test2();
MethodInfo m = test22.getType().GetMethod("testGet");
String test = m.Invoke(test2, new Object[] {"123546"}).ToString();
System.out.println(test);
*/



}
}
0 0
原创粉丝点击