Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java getClass() method

// create an object of Dog class
Dog d1 = new Dog();

// create an object of Class
// to reflect Dog
Class b = d1.getClass();
 
PREVIOUS NEXT
Tagged: #Java #method
ADD COMMENT
Topic
Name
9+7 =