Does passing an object as a parameter result in the same level of coupling as having it stored in a field?

后端 未结 0 751
盖世英雄少女心
盖世英雄少女心 2021-01-18 19:20
class ConcreteObserver implements Observer {
    String text;

    public void actualize(Subject subject) {
        this.text = subject.getState();
    }
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题