> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/scripting/class/create.md).

# Create

Creates a new OOP class with optional inheritance.

{% hint style="info" %}
**Side:** Shared · **Category:** Class · **API:** `LT.Class.Create`
{% endhint %}

## Example

```lua
local BaseClass = LT.Class.Create('BaseClass')
local MyClass = LT.Class.Create('MyClass', BaseClass)

function MyClass:constructor(name)
    self.name = name
end

local obj = MyClass.new('test')
```

## Parameters

| Name    | Required | Description                        |
| ------- | -------- | ---------------------------------- |
| `name`  | Yes      | Class name                         |
| `super` | No       | Parent class table to inherit from |

## Returns

* `table` — class with `.new()`, `.include()`, `.isA()`, `.private()`, `.destroy()`
