Skip to content

Instantly share code, notes, and snippets.

@libliboom
Created October 31, 2019 18:08
Show Gist options
  • Save libliboom/f150948f4895ffd188d311c574e8c1ab to your computer and use it in GitHub Desktop.
Save libliboom/f150948f4895ffd188d311c574e8c1ab to your computer and use it in GitHub Desktop.
// 의존관계가 있는 경우
Rectangle void setWidth(int width) {
this.width = width;
area = width * height;
}
// 의존관계가 있으나 명확하지 않은 경우
Widget void setBorder(int width) {
this.width = width;
notifyListener
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment