Write a class calledcircle, which inheres the abovepointclass.
Write a class calledcircle,
which inheres the abovepointclass.
Select appropriate
variable(s).
Write constructors.
Write access methods for the variables.
Override the inherited Print method to display variable incircleandpoint.
Write a test program to test it.
I only need the circle class part. Here is the code for the point class that this references. I need this within 2 hours please!
public class point
{
int x,y;
public point(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
void print()
{
System.out.println(“X is ” + x);
System.out.println(“Y is ” + y) ;
}
public static void main(String[] args)
{
point p = new point(10,5);
p.print();
}
}