标签:编程
import mil.oms.main.test.Test; public class MainTest { public static void main(String args[]){ Test test=new Test(); } /** 运行结果 Test()实例化…… */ }
package mil.oms.main.test; public class Test{ public Test(){ System.out.println("Test()实例化……"); } }
import mil.oms.main.test.Vector; import java.util.*; public class MainTest { public static void main(String args[]){ Vector vector=new Vector(); java.util.Vector vector1=new java.util.Vector(); } }
package mil.oms.main.test; public class Vector{ public Vector(){ System.out.println("Vector()实例化……"); } }
标签:编程
原文地址:http://blog.csdn.net/ztt_1119/article/details/40787393