public class test { public static void main(String[] args) { Employee emp1 = new Employee("E001", "张三", "技术部", 8000); Employee emp2 = new Employee("E002", "李四", "市场部", 6000); System.out.println("员工信息"); emp1.printInfo(); emp2.printInfo(); } }