Answers for "java casting objects"

0

java casting method

Animal animal = new Dog ();
animal.fetch(); // Compiler error
(Dog) animal.fetch();
Posted by: Guest on August-20-2021
0

java casting method

Animal animal = new Dog ();
animal.fetch(); // Compiler error
(Dog) animal.fetch();
Posted by: Guest on August-20-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language