Академический Документы
Профессиональный Документы
Культура Документы
even if we do
Animal a = new Animal();
Dog d = (Dog)a; //incoreect but not detected at compile time
String s = "a";
Animal a = (Animal)s;//detected at compile time
16.changing animal to Dog is downcasting
downcasting is exlicit ,upcasting is implicit
17.abstract class Ball implements Bounceable{}
//correct