day10-多态的格式与使用
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.inmind.duotai08;
|
||||
|
||||
public class Employee {
|
||||
String name;
|
||||
int age;
|
||||
double salary;
|
||||
|
||||
public void work(){
|
||||
System.out.println("员工正在工作");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user