The Fake Geek's blog: Design a music juke box
A music juke box will possibly need: a CD player, A set of CDs, a program to set tracks and a user.
The rule of OOD suggests that we should wrap up data with their operating functions in a single entity class, so we need to following classes"
Read full article from The Fake Geek's blog: Design a music juke box
A music juke box will possibly need: a CD player, A set of CDs, a program to set tracks and a user.
The rule of OOD suggests that we should wrap up data with their operating functions in a single entity class, so we need to following classes"
- JukeBox: Of course, that's what we are designing.
- CD player: to play CDs
- CD: well, to play
- Playlist: a user defined playlist that allows the user to query the songs he/she wants to play
- Song: yeah, it's music...
- TrackSelector: that is the program to set and get the track
- User: who is playing? The current design only allows for one user at a time.
Read full article from The Fake Geek's blog: Design a music juke box