And this code works perfectly well, which means that i can put a honda in car reference and then cast it and put it in another honda reference. But if i do the same thing with Array it does not work . i get a compiler error. so if i change my car tester class like this :
so can anyone tell me whether casting is possible with arrays? if so then how can i correct my code ?