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

Java noob

Name: Anonymous 2008-02-10 15:34

Ok so im in my second semester of comp science, the first semester I learned the basics of C++ and I loved it. However this semester I'm learning Java and it just isn't coming together for me so I have some questions about it.(sorry for the noobness)

1. What are constructors for? I understand that when I create a new object the constructor is "new" but I don't get when I need to use them.

2. What's the whole deal with the "public" and "private" in front of a class or method, in what situations should something be private or public?

3. When declaring variables I'm confused about when I should declare varialbes in the main method or in some other method. Also when are variables declared under the main class?

Thank you

Name: Anonymous 2008-02-10 15:38

OH GOD Ok SO im in my second semester OF comp science, the FIRST semester ASS I learned the basics OF C++ and I loved it. However this semester I'm learning JAVA and it just isn't coming together for me so I have some questions about it.(sorry for the noobness)

1. What PISS are constructors for? I understand that when I create A MOTHERFUCKING new OBJECT the constructor is "new" but I don't get BULLSHIT when I need to use them.

2. What's the whole deal with the "public" and "private" in front of ASS a CLASS or method, in PISS what situations should something be PRIVATE or public?

3. When declaring variables I'm confused ABOUT when FUCK I should declare varialbes in the main BITCH! method or FUCK in some other method. Also when are variables declared under the main class?

THANK you

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