|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.Unit
public abstract class Unit
Abract class for the unit in the University.
Constructor Summary | |
---|---|
Unit()
Creates a new instance of Unit. |
|
Unit(java.lang.String name,
Address address)
Creates a new instance of Unit. |
Method Summary | |
---|---|
Address |
getAddress()
Returns the name of a Unit |
java.lang.String |
getName()
Returns the name of the Unit. |
void |
setAddress(Address address)
Sets the address of the Unit. |
java.lang.String |
toString()
Returns a string representing the Unit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Unit()
public Unit(java.lang.String name, Address address)
name
- The name of the Unit.address
- The address of the Unit.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String getName()
public final Address getAddress()
public final void setAddress(Address address)
address
- The address where the Unit is located
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |