|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcourses.dsv2pvt.messageclasses.Msg
Msg is the abstract base class of all messages in the message classes package. Instances of Msg retrieves the senders username from the system and uses that as the from address.
Constructor Summary | |
Msg()
Retrieves the username of the current user. |
Method Summary | |
String |
getSender()
Returns the username of the user owning the virtual machine that was used to instantiate the message. |
String |
toString()
Prints the class name of the message without prepending the package name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Msg()
Method Detail |
public final String getSender()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |