day11-final关键字用于修饰方法
This commit is contained in:
14
day11/src/com/inmind/final_method/Zi.java
Normal file
14
day11/src/com/inmind/final_method/Zi.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.inmind.final_method;
|
||||
|
||||
public class Zi extends Fu{
|
||||
//ctrl+o
|
||||
|
||||
/*@Override
|
||||
public void method() {
|
||||
//super.method();//调用父类的成员方法,沿用
|
||||
System.out.println("子类的method方法,重写了父类的功能");
|
||||
}*/
|
||||
|
||||
public void methodZi(){
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user