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

# superclass()

Returns the class object for the receiver’s superclass.

## Declaration

```swift
class func superclass() -> AnyClass?
```

## Return Value

Return Value The class object for the receiver’s superclass.

## See Also

### Related Documentation

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

### Identifying Classes

- [isSubclass(of:)](objectivec/nsobject-swift.class/issubclass(of:).md)
