What does “instaceOf” means?

It’s and operator that returns true if and the given object is an instance of the given class.

MyClass myObject = new MyClass(); 
if(myObject instaceOf MyClass){}
Advertisements

Create a website or blog at WordPress.com

Up ↑