isInstanceOf 和 asInstanceOf is用于判断 as用于转换,把父类类型转换成子类类型 getClass 具体找出类型 转载于:https://www.cnblogs.com/sunrunzhi/p/9990734.html