Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java multiple classes

Name: Anonymous 2012-01-25 12:13

http://www.youtube.com/watch?v=XqTg2buXS5o&feature=player_profilepage#t=179s

     tuna tunaObject = new tuna();



Someone care to explain why you need to type "tuna" at the beginning and "tuna()" at the end if you already stated that you're going to use the tuna class at the beggining?
I think I understand the "tunaObject" is(the variable to which you will assign the new class in the main class, right?), but the "new" is still kind of ... I don't understand it either...
:/

Name: Anonymous 2012-01-25 16:46

>>18
I was just going to write that I didn't understand what you were saying until I saw your tl;dr.

I just wish someone could answer my question in >>7 instead of giving replies that you're accustomed to give on /b/.

At least answer me this and tell me which of the next statements that I'm thinking are wrong:

In tuna tunaObject = new tuna()
"tuna" stands for the class I'm calling
"tunaObject" defines what type of .... thing... tuna is(like classifying "23" as a string/int/double)
"new" IDK what this is, I suppose it just is to let python know that it's a new function or something.
"tuna()" I'm assuming that it's just there in case I want to have that class examine a variable or an input and I can do that by putting whatever I want examined between the parentheses.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List