
package tw.edu.nccu.cs.exercise.two.fix;

import tw.edu.nccu.cs.exercise.two.exteranl.Bird;
import tw.edu.nccu.cs.exercise.two.exteranl.Eagle;

class BirdSimpleFactory {

    public static Bird getBird(String name) {
        Bird bird = new Eagle();
        bird.setName(name);
        bird.setSpeed(25);
        bird.init();
        return bird;
    }

}
