Fields say what an object is
Methods say what an object does
class TwoDPoint {
double x;
double y;
}
To compile this class, put it in a file called
TwoDPoint.java and type:
% javac TwoDPoint.javaWhat does this produce?
Is this a complete program? Can you run it?