- (NSString*)description{
return [NSString stringWithFormat:@"%@{%@}",[super description],self.name];
}
description到底是什么东西?
description不是关键字. description是NSObject提供的一个属性
declaration:
@property(readonly, copy) NSString *description;
Description
Returns a string that describes the contents of the receiver.
This method is used to create a textual representation of an object, for example in a formatted string:
翻译:返回一个描述接收者内容的字符串。
该方法用于创建对象的文本表示,例如在格式化的字符串中: