MCPcopy Create free account
hub / github.com/Seogeurim/CS-study / NetflixUser

Class NetflixUser

contents/design-pattern/code/ObserverJava/NetflixUser.java:1–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public class NetflixUser implements Observer {
2
3 public String name;
4
5 public NetflixUser(String name){
6 this.name = name;
7 }
8
9 @Override
10 public void updateMovie(String content) {
11 System.out.println(name+ " | 영화 : " + content +"가 업로드 되었습니다.");
12 }
13
14 @Override
15 public void updateAnimation(String content) {
16 System.out.println(name+ " | 애니메이션 : " + content +"가 업로드 되었습니다.");
17 }
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected