Demo entry 6351500

/** * Created by LiuQixuan on 2017/3/20. */classAnimal{publicvoidbreathe(Stringanimal){System.out.println(animal+"呼吸空气");}}publicclassClient{publicstaticvoidmain(String[]args){Animalanimal=newAnimal();animal.breathe("牛");animal.breathe("羊");animal.breathe("猪");}}