我怎樣才能調用超類的重寫方法? 例如:如何調用超類的overriden方法?
class A {
public void someMethod() {
// someMethod of class A
}
}
class B extends A {
public void someMethod() {
//someMethod of class B.
// How to call to the someMethod of class A
}
}
我重寫A類的someMethod,我怎麼能仍然從A的的someMethod打電話了嗎?
..所以對於新手來說是公平的,在這種情況下,他們也應該倒下重複的答案! :) – Bartzilla 2013-03-11 19:55:17