⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractemployee.java

📁 正在学习Java的人或许能从中得到自己想要的东西
💻 JAVA
字号:
import java.util.*;

public abstract class AbstractEmployee {
   protected String name;
   protected float salary;
   protected Employee parent = null;
   protected boolean leaf = true;
 
 public abstract float getSalary();
 public abstract String getName();
 public abstract boolean add(Employee e) throws NoSuchElementException;
 public abstract void remove(Employee e);
 public abstract Enumeration subordinates();
 public abstract Employee getChild(String s);
 public abstract float getSalaries();  
 public boolean isLeaf() {return leaf;}
 
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -