/**
   Example from Core Java 8th edition by Horstmann and Cornell 
 */ 
public class ManagerTest{
    public static void main(String[] args){
	Manager boss = new Manager("Harry", 80000); 
	boss.setBonus(5000);
	
	Employee[] staff = new Employee[3]; 
	
	staff[0] = boss; 
	staff[1] = new Employee("Tom", 50000);
	staff[2] = new Employee("Jack", 60000);
	
	for( Employee e : staff ) 
	    System.out.println("name:" + e.getName() + ", salary:" + e.getSalary());
    }
}

