I'm confused :(

+1 Noel Lent · July 8, 2015
He says that this variable (tuna tunaObject = new tuna("Kimberly");) is called girlName. How does it refer to girlName?
Thank you

Post a Reply

Replies

Oldest  Newest  Rating
+1 Otto Von Chesterfield · July 8, 2015
Can you tell me what tutorial series and episode this is? Thanks!
0 Raymond Cheng · July 8, 2015
Is it that Kimberly is referred to girlName? I think what Bucky mean is that when you declare an object of a class, the constructor is called, and this is where most of the variables are initialized. So in the constructor, a name must be passed in, in this case "Kimberly", and thus girlName = name (the parameter of the constructor).
  • 1

Java / Android Development

106,927 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator