Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java casting method

Animal animal = new Dog ();
animal.fetch(); // Compiler error
(Dog) animal.fetch();
 
PREVIOUS NEXT
Tagged: #java #casting #method
ADD COMMENT
Topic
Name
6+3 =