class Demo{ private int firistNum; private int secondNum; public static int temp = 3; public Demo(int firstNum,int secondNum){ this.firstNum = firstNum; this.secondNum = secondNum; } } public class Test{ Public static void main(String [] args){ Demo test = new Demo(3,4); } } |
欢迎光临 德国开元华人社区 开元周游 (https://bbs.kaiyuan.cn/) | Powered by Discuz! X3.2 |