The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.34 / 5.00 31,296 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 10,082 ViewsOkay. I have this code here from a book I'm reading, and I don't quite understand what those "this" refers to in the constructor method body. Hoping some kind soul could clear it up for me here T_T
package zoo {
public class VirtualZoo {
private var pet;
public function VirtualZoo ( ) {
this.pet = new VirtualPet("Stan");
this.pet.getAge( );
}
}
}
'this' refers to the object your putting the code on.
Check out AS: Hierarchy for more info. :]
what
Thought it had something to do with that... Thanks man! Especially thankful for that list. I'm going to go read it now. :D