OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."
OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."
Helen Ma wrote:case 1:
Animal cat = new Cat();
list.add(cat) , won't compile even though list is assigned to a list with Animal object inside it.
case 3:
Object o = new String();
list.add(o), won't compile even though list is assigned to a list with Object inside it.
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|