day10-多态的概述和格式

This commit is contained in:
2026-05-27 16:53:10 +08:00
parent 1363911529
commit a0996aad04
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package com.inmind.duotai08;
public class Fu {
int numFu = 10;
int num = 20;
public void methodFu(){
System.out.println("父类的methodFu方法");
}
public void method(){
System.out.println("父类的method方法");
}
}