Question: Java please What is the output the following program below after implementing the methods for the Point class? public static void main(String [] args) {

Java please
What is the output the following program below after implementing the methods for the Point class? public static void main(String [] args) \{ Point p1= new Point (10,100); Point p2 = new Point (90,10); Point p3 = new Point (10,10); System.out.println("The manhanttan distance of points p1 and p2 is: " + p1.manhattanDistance(p2)); System.out.println("The slope distance of points p1 and p2 is: " + p1.slope(p2)); System.out. println("Is p1 vertically above p2 : " + p1.isVertical(p2)); System.out. println("The manhanttan distance of points p1 and p3 is: " + p1.manhattanDistance(p3)); System. out. println("Is p1 vertically above p3 : " + p1. isVertical (p3) )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
