Class Country

java.lang.Object
  |
  +--Country

public class Country
extends java.lang.Object

A Country.


Constructor Summary
Country()
          Construct a Country object.
 
Method Summary
 double getArea()
          Gets the area of the country.
 double getDensity()
          Gets the density of the country.
 java.lang.String getName()
          Gets the name of the country.
 double getPopulation()
          Gets the population of the country.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Country

public Country()
Construct a Country object.
Method Detail

getName

public java.lang.String getName()
Gets the name of the country.
Returns:
name of country.

getPopulation

public double getPopulation()
Gets the population of the country.
Returns:
population of country.

getArea

public double getArea()
Gets the area of the country.
Returns:
area of country.

getDensity

public double getDensity()
Gets the density of the country.
Returns:
density of country.