The thing to remember is this: the variable you have called "newSong" is a reference (which equates to a pointer, containing an address). When you first declare it, the reference isn't pointing at anything. You need to instantiate an object for that reference to point at, and this is typically done with the "new" keyword, which calls the constructor for that class.
Joined: Sep 16, 2005
I think Keith wanted Shaggy to figure out the syntax hisself
Joined: Mar 30, 2006
Ah...I apologize, that makes sense.
I'm just getting used to the etiquette here.
subject: Confused...creating an ojbect and adding it