Keyword

# Inherits

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

A Class can Inherit from another class to build on its public and protected properties and methods.

## Notes

Inheritance a feature of object-oriented programming where you create a new class that is based on an existing class. The new class is called the subclass and the existing class is called the super class. The subclass "<span class="title-ref">Inherits</span>" (and can thus use) all the public and protected properties and methods of its superclass.

You will not use the <span class="title-ref">Inherits</span> keyword directly in your code. To have a class Inherit from another class select it as the Super in the Inspector for the class.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Class</api/language/class>` keyword

</div>
