import { SoundPlayer } from './SoundPlayer' ; export class SoundPlayerConsumer { private _soundPlayer : SoundPlayer ; public constructor ( ) { this . _soundPlayer = new SoundPlayer ( ) ; } public playSomethingCool ( ) { const coolSoundFileName = 'song.mp3' ; this . _soundPlayer . playSoundFile ( coolSoundFileName ) ; } }