本帖最后由 全海波 于 2012-8-4 09:44 编辑
- class FuZi
- {
- public static void main(String[] args)
- {
- Zi z = new Zi();
- //z.function();
- z.show();
- Fu f = new Zi();
- f.show();
- }
- }
- class Fu
- {
- void show()
- {
- System.out.println("fu show");
- }
- }
- class Zi extends Fu
- {
- /*
- void function()
- {
- }
- */
- void show()
- {
- System.out.println("zi show");
- }
- }
复制代码 问这个类的执行顺序? |
|