szucz 发表于 2013-03-27 09:32

父类用子类的对象作为参数去创建对象

threadtest,thread是两个类,thread是父类

threadtest t=new threadtest();
thread tt=new thread(t);

上面两行代码是什么意思?
页: [1]
查看完整版本: 父类用子类的对象作为参数去创建对象