Figure 25.3 shows a UML diagram of the data model for our MP3 player application, at the lowest level.
Mp3Song is an abstract class (which is why it is italicized in the UML diagram). This interface is meant to describe a common set of features for different implementations of the Mp3Song interface.
#ifndef _MP3SONG_H #define _MP3SONG_H #include |
Note also that there is a getTRackTime() function but no setTrackTime() method. This is because m_trackTime is a calculated value, a read-only property. Derived classes will override this method and return the actual time of the song.