package cn.bunny.pattern3.demo1.observer;

public class Observer2 implements Observer {

    /**
     * 更新数据
     *
     * @param temperature 温度
     * @param humidity    湿度
     * @param pressure    气压
     */
    @Override
    public void update(float temperature, float humidity, float pressure) {
        System.out.println("Observer2 显示数据：temperature = " + temperature + ";humidity = " + humidity);

    }
}
