<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/description()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(cm)description"
  },
  "title" : "description()"
}
-->

# description()

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

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

## Return Value

A string that represents the contents of the receiving class.

## 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

[`description`](/documentation/ObjectiveC/NSObjectProtocol/description)

A textual representation of the receiver.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)