MCPcopy Create free account
hub / github.com/careercup/ctci / CDPlayer

Class CDPlayer

java/Chapter 8/Question8_3/CDPlayer.java:3–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package Question8_3;
2
3public class CDPlayer {
4 private Playlist p;
5 private CD c;
6
7 public Playlist getPlaylist() { return p; }
8 public void setPlaylist(Playlist p) { this.p = p; }
9 public CD getCD() { return c; }
10 public void setCD(CD c) { this.c = c; }
11
12 public CDPlayer(Playlist p) { this.p = p; }
13 public CDPlayer(CD c, Playlist p) {
14 this.p = p;
15 this.c = c;
16 }
17
18 public CDPlayer(CD c){ this.c = c; }
19 public void playSong(Song s) { }
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected