Class Casting
Monday, January 29th, 2007import 魚.*;
class test {
public static void main(args[]){
油魚 fish= new 油魚();
鱈魚 manyFish[] = new 鱈魚[10];
manyFish[0]=fish;
System.out.println(“no problem la”);
}
}
javac test
compile error: Class casting exception: 油魚 is not extend from 鱈魚: line 3
名人實用句子:理由總結實用句
李嘉誠:「……(前略)……要用腦筋諗諗, 其實唔係淨係百佳賣油魚, 係咪?」
實用例子參考:
賊佬說:「……(一堆理由)……要用腦筋諗諗,其實唔係淨係我偷野,係咪?」
青年說 :「……(一堆理由)……要用腦筋諗諗,其實唔係淨係我啪丸,係咪?」