Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Java] Objects
#1
So our teacher did a pretty bad job of explaining what objects are, so basically I have no idea how to use them, their format, what to input, etc. etc.

Our assignment is to basically create a point from (1,1) to (20,20), have the user guess a point, and see how far/close it is. Using objects.

His "Point" class is

 Spoiler

Assume that the "//look on webpage" pretty much shows nothing useful. I'm supposed to put something there.

Steps he told us to do to complete the objective:

1. Copy paste the above file into jcreator (the program we use to code).
2. Insert some stuff in the //look on webpage part (aka fix the Constructor Summary).
3. Decompile.
4. Create another file and code and decompile and stuff to complete the objective.

So...how do I do this? Like I said, I have literally no idea to do this. What is the point of all of those summaries? What does void move mean? And to use it do I use point(dot)...what?

I'm going to read the textbook later when I get home in an attempt to grasp some understanding, but I have some downtime at the moment and I thought "Hey, this is a great moment to ask Southperry!"
Reply


Messages In This Thread
[Java] Objects - by Corn - 2011-10-24, 11:30 AM
[Java] Objects - by Spaz - 2011-10-24, 06:15 PM
[Java] Objects - by Spaz - 2011-10-24, 06:15 PM
[Java] Objects - by Kalovale - 2011-10-24, 06:40 PM
[Java] Objects - by Corn - 2011-10-24, 07:58 PM
[Java] Objects - by Spaz - 2011-10-24, 09:46 PM
[Java] Objects - by Kalovale - 2011-10-26, 12:53 AM
[Java] Objects - by Corn - 2011-10-26, 04:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)