# Multiple classes in an (undefined) ArrayList?

**URL:** <https://discourse.processing.org/t/multiple-classes-in-an-undefined-arraylist/8291>\
**Category:** Beginners\
**Created:** [February 11, 2019, 7:14pm UTC](https://discourse.processing.org/t/multiple-classes-in-an-undefined-arraylist/8291 "2019-02-11T19:14:45Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 4, 2023, 10:43am UTC](https://discourse.processing.org/t/multiple-classes-in-an-undefined-arraylist/8291/13 "2023-04-04T10:43:12Z")

</div>

@quark :

> [@quark](#):
>
> the returned `Object` instance is _cast_ to the type `playerClass`

Can I ask the object which type it is?

```auto

    println(someObject.getType());

```

---

_[View the full topic](https://discourse.processing.org/t/multiple-classes-in-an-undefined-arraylist/8291)._
