# Circle - Circle rect =(Circle)o...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { Circle rect = (Circle)o; if (calculateArea() >rect.calculateArea()) { return -1; } if (calculateArea() ==rect.calculateArea()) { return 0; } if (calculateArea() <rect.calculateArea()) { return 1; } } return 100; } public boolean equals(Object o) { if (o instanceof Circle) { Circle circle = (Circle)o; if (getRadius()==(circle.getRadius())) { return true; } else return false; } else return false; } }...
View Full Document

## This note was uploaded on 03/25/2010 for the course CIS CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

### Page1 / 2

Circle - Circle rect =(Circle)o...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online