Search:

Type: Posts; User: joachim89

Search: Search took 0.10 seconds.

  1. Re: Creating a class for points in three dimensions.

    Ok, but how do I make it store the six variables and make them accesible in distance() ?

    Copeg: Yes, I meant Overloading, not overriding. But is my code overloading the distance method at this...
  2. Creating a class for points in three dimensions.

    I have written a class for, as the title says, points in the three-dimensional space.


    import java.awt.Point;

    public class Point3d extends Point{

    public Point3d(int x, int y, int z){...
Results 1 to 2 of 2