2011-10-24, 11:30 AM
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
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!"
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!"

