26.

instanceof关键字

        用于判断某个对象是否是某种类型。

        格式

            对象名 instanceof 子类(实现)名

posted @ 2021-08-05 12:10  年年ℓ  阅读(68)  评论(0)    收藏  举报