public class Pharmacy
extends java.lang.Object
Constructor and Description |
---|
Pharmacy()
Creates an "empty" pharmacy.
|
Pharmacy(java.lang.String name,
java.lang.String address,
java.lang.String city,
java.lang.String state,
java.lang.String zipcode,
java.lang.String phone)
Creates an actual pharmacy.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress() |
java.lang.String |
getCity() |
java.lang.String |
getName() |
java.lang.String |
getState() |
java.lang.String |
getZipCode() |
void |
setAddress(java.lang.String address) |
void |
setCity(java.lang.String city) |
void |
setName(java.lang.String name) |
void |
setPhone(java.lang.String phone) |
void |
setState(java.lang.String state) |
void |
setZipCode(java.lang.String zipcode) |
public Pharmacy()
public Pharmacy(java.lang.String name, java.lang.String address, java.lang.String city, java.lang.String state, java.lang.String zipcode, java.lang.String phone)
name
- Name of the pharmacy.address
- Address.city
- City.state
- State.zipcode
- Zip code.phone
- Phone number.public void setName(java.lang.String name)
public void setAddress(java.lang.String address)
public void setCity(java.lang.String city)
public void setState(java.lang.String state)
public void setZipCode(java.lang.String zipcode)
public void setPhone(java.lang.String phone)
public java.lang.String getName()
public java.lang.String getAddress()
public java.lang.String getCity()
public java.lang.String getState()
public java.lang.String getZipCode()