Hi All,
I'm going through the HeadFirst
Java book, which really is excellent. In the book, I am working on chapter 11 page 324 where we enter the lines
Sequencer player = MidiSystem.getSequencer();
player.open();
To better understand this line, I took a look at the javadocs associated with Sequencer and MidiSystem. The javadocs indicate that Sequencer is an interface and that getSequencer is a static method of the MidiSystem class.
My question is what type of an object is player?
I would say that player implements Sequencer but what object does it extend, does it extend MidiSystem? If so does getSequencer call new under the covers? Thanks in advance!!
Best Regards,
Jeff