成员函数一览 All Methods Instance Methods Abstract Methods 修饰符和类 成员函数描述 String getName() 返回这个事物的名字。 Gets the name of this object. boolean hasName() 返回这个事物是否有名字。 Whether this object has a name. void setName(String name) 设置或更改这个事物的名字。 Changes the name of this object, or names it.