AnOval - return [email protected] public int getWidth TODO...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class AnOval implements Oval { int height; int width; Point location; public AnOval(int initX, int initY, int initWidth, int initHeight){ height = initHeight; width = initWidth; location = new ACartesianPoint(initX, initY); } @Override public int getHeight() { // TODO Auto-generated method stub return height; } @Override public Point getLocation() { // TODO Auto-generated method stub
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return location; } @Override public int getWidth() { // TODO Auto-generated method stub return width; } @Override public void setHeight(int h) { // TODO Auto-generated method stub height = h; } @Override public void setLocation(Point p) { location = p; } @Override public void setWidth(int w) { width = w; } }...
View Full Document

This note was uploaded on 10/17/2011 for the course COMP 110 taught by Professor Stotts during the Fall '08 term at UNC.

Ask a homework question - tutors are online