day10-多态的格式与使用

This commit is contained in:
2026-07-27 14:21:33 +08:00
parent ba066fb77b
commit cd859f9376
4 changed files with 44 additions and 0 deletions
@@ -0,0 +1,11 @@
package com.inmind.duotai08;
public class Employee {
String name;
int age;
double salary;
public void work(){
System.out.println("员工正在工作");
}
}