# GetSuperclass(nint)

> If \<tt\>clazz\</tt\> represents any class other than the class \<tt\>Object\</tt\>, then this function returns the object that represents the superclass of the class specified by \<tt\>clazz\</tt\>.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## GetSuperclass(IntPtr)

```csharp
public static nint GetSuperclass(nint clazz)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)):&#x20;

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [IntPtr](https://learn.microsoft.com/dotnet/api/system.intptr) |             |

### Remarks

If \\\<tt\\>clazz\\\</tt\\> specifies the class \\\<tt\\>Object\\\</tt\\>, or \\\<tt\\>clazz\\\</tt\\> represents an interface, this function returns \\\<tt\\>NULL\\\</tt\\>.

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
