Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

instance of

if (cobj instanceof Child) 
	System.out.println("cobj is instance of Child"); 
else
	System.out.println("cobj is NOT instance of Child"); 
    
// Source: https://www.geeksforgeeks.org/java-instanceof-and-its-applications/
  
 
PREVIOUS NEXT
Tagged: #instance
ADD COMMENT
Topic
Name
9+3 =