day09--super和this关键字的作用

This commit is contained in:
xx
2026-09-23 14:10:37 +08:00
parent f6cdc32d8c
commit 400c469e09
3 changed files with 77 additions and 0 deletions
@@ -0,0 +1,15 @@
package com.inmind.extends_this_super05;
public class Fu {
int numFu = 10;
public Fu(){}
public Fu(int numFu){
this.numFu = numFu;
}
public void methodFu(){
System.out.println("父类的methodFu方法");
}
}