DataType

# Object

<div class="rst-class">

forsearch

</div>

DataType

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

## Description

<span class="title-ref">Object</span> is the base class of all other classes. Any <span class="title-ref">Object</span> can be assigned into a variable of type <span class="title-ref">Object</span>. The default value of a new instance of an <span class="title-ref">Object</span> is `Nil</api/language/nil>`. The <span class="title-ref">Object</span> class has no properties, methods, or events.

It is not necessary to specify <span class="title-ref">“Object”</span> as the Super of a class. The Inspectors Super field can simply be left empty.

## Notes

You will not typically use <span class="title-ref">Object</span> in your own code. However, any use of it will require you to cast your objects back to their original type before they can be used.

``` xojo
Var obj As Object

obj = New Dictionary
Dictionary(obj).Value("ID") = "Hello"
```

## Compatibility

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