---
title: class
framework: objectivec
role: symbol
role_heading: Instance Method
path: objectivec/nsobject-c.protocol/class
---

# class

Returns the class object for the receiver’s class.

## Declaration

```occ
- (Class) class;
```

## Return Value

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

## See Also

### Related Documentation

- [class](objectivec/nsobject-swift.class/class.md)
- [Advanced Memory Management Programming Guide](apple-archive/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/MemoryMgmt.html.md)

### Identifying Classes

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