Instance of 和getClass()区别概述
摘要:
instance of 运算符和getClass()方法都可以用来检查一个对象所属的类。instance of 运算符仅测试一个对象的类型;getClass()方法与==或!=结合使用,测试两个对象是不是用相同的类的创建。具体细节如下描述:instance of 运算符instance of 运算符... 阅读全文
posted @ 2015-04-17 15:01
SUNAJING
阅读(357)
评论(0)
推荐(0)
浙公网安备 33010602011771号