欢迎使用CSDN-markdown编辑器

来源:互联网 发布:苹果电脑办公软件下载 编辑:程序博客网 时间:2024/06/07 23:47

getClass 与 instance of

getClass 与 instance of 都可以用来判断类实例是否属于同一个类。

区别:instance of 如果是继承关系也为ture

例如:child instance of father : true

原创粉丝点击