# Adding parent class to arraylist with internal function

**URL:** <https://discourse.processing.org/t/adding-parent-class-to-arraylist-with-internal-function/7766>\
**Category:** Coding Questions\
**Created:** [January 23, 2019, 4:37pm UTC](https://discourse.processing.org/t/adding-parent-class-to-arraylist-with-internal-function/7766 "2019-01-23T16:37:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![JackWitherell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jackwitherell/32/3361_2.png) [@JackWitherell](https://discourse.processing.org/u/JackWitherell)\
**Post date:** [January 23, 2019, 10:44pm UTC](https://discourse.processing.org/t/adding-parent-class-to-arraylist-with-internal-function/7766/6 "2019-01-23T22:44:09Z")

</div>

.add isn’t really the questionable part here.

Architector asked

> [@Architector\_4](#):
>
> How is `incon` defined?

and incon appears to be a member of object `i` which appears to be of type `floebox`

> [@Bluu](#):
>
> `for (floebox i : elements) {`

We don’t know what a `floebox` is, how it’s defined, or the type of any of its members.

You mentioned that `.add` is a built in java function but we still don’t know what type of object `incon` is, since `.add` is a very ambiguous name that is used in several built in Java classes.

Please take a look at the [Guidelines—Tips on Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147) page and take special note to the following sections:

- Is your problem isolated?
- Can we run your code to see the same thing as you?

---

_[View the full topic](https://discourse.processing.org/t/adding-parent-class-to-arraylist-with-internal-function/7766)._
