Region - name=s; area=a; } public String toString(){ return...

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

View Full Document Right Arrow Icon
//Region public class Region{ private String name;//name of the region private int area;//area of the region public Region(String s, int a){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: name=s; area=a; } public String toString(){ return name+" has area "+area+" sq miles"; } }...
View Full Document

This document was uploaded on 02/24/2010.

Ask a homework question - tutors are online