Question: Free - Response Practice: Point 3 D Class Consider the following class: public class Point { private int x ; private int Y ; public
FreeResponse Practice: PointD Class
Consider the following class:
public class Point
private int ;
private int ;
public Pointint newX, int newY
new ;
new ;
public int getX
return ;
public int gety
return ;
Write the class Point D that extends this class to represent a threedimensional point with and coordinates. Be sure to use appropriate inheritance. Do not duplicate code.
You will need to write:
A constructor that takes three int values representing the and coordinates
Appropriate mutator and accessor methods setters and getters
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
