App8_08_getClass
来源:互联网 发布:2d旋转矩阵 编辑:程序博客网 时间:2024/04/29 08:36
//利用getClass()方法返回运行该方法的对象所属的类class Person{protected String name;public Person(String xm) //构造方法{name=xm;}}public class App8_8 //主类{public static void main(String[] args){Person per=new Person("LILEI");Class obj=per.getClass();System.out.println("对象per所属的类为:"+obj);}}
0 0
- App8_08_getClass
- Java学习笔记一
- [INS-06006] Passwordless SSH connectivity not set up
- 并发无锁队列学习(数据结构)
- 与时间有关的类和方法
- hdu Robberies (背包)
- App8_08_getClass
- ZOJ Problem Set - 1007 Numerical Summation of a Series
- hdu I NEED A OFFER! (背包)
- App8_10_抽象类abstract
- 酒肉穿肠过 佛祖心中留...
- 安卓实习第八天
- App8_12_利用接口实现多重继承
- 2015年7月24日笔记
- hdu An easy problem (背包)