Change: 的左邊通 常是任何的左邊通常是 任何 object reference expression或variable,但右邊必須是與左邊有繼承
關係的
class, interface, 或 array type,否則會發生error。
Interface Foo{} class
A implements Foo{}
class B extends A {} ….
A a = new A(); B b = new B();
下列狀況為true:
1.a instanceof Foo
2.b instanceof A
View changes from previous version.
(Word count: 252)