SomethingWithANamepublic class SomethingWithAName extends Object Purpose: encapsulates an object which only characteristic is
its name |
Fields Summary |
---|
protected String | m_strName |
Constructors Summary |
---|
public SomethingWithAName(String strName)Purpose: Constructor
m_strName = strName;
|
Methods Summary |
---|
public java.lang.String | GetName()Purpose: returns the name of the object return m_strName;
| public void | SetName(java.lang.String strNewName)Purpose: sets name
m_strName = strNewName;
|
|