Code: Select all
package models;
public class Point {
private double x;
private double y;
// constructor having both parameters
// distance(Point dest) - distance from current point to the dest point
// toString
Code: Select all
package models;
public class Point {
private double x;
private double y;
// constructor having both parameters
// distance(Point dest) - distance from current point to the dest point
// toString