---
title: description()
framework: objectivec
role: symbol
role_heading: Type Method
path: objectivec/nsobject-swift.class/description()
---

# description()

Returns a string that represents the contents of the receiving class.

## Declaration

```swift
class func description() -> String
```

## Return Value

Return Value A string that represents the contents of the receiving class.

## Discussion

Discussion The debugger’s print-object command invokes this method to produce a textual description of an object. NSObject’s implementation of this method simply prints the name of the class.

## See Also

### Related Documentation

- [description](objectivec/nsobjectprotocol/description.md)
