Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

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();
}

}

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"