# Using Array for a class

**URL:** <https://forum.juce.com/t/using-array-for-a-class/3041>\
**Category:** General JUCE discussion\
**Created:** [July 17, 2008, 7:22am UTC](https://forum.juce.com/t/using-array-for-a-class/3041 "2008-07-17T07:22:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emre](https://avatars.discourse-cdn.com/v4/letter/e/71e660/32.png) [@emre](https://forum.juce.com/u/emre)\
**Post date:** [July 17, 2008, 7:22am UTC](https://forum.juce.com/t/using-array-for-a-class/3041/1 "2008-07-17T07:22:46Z")

</div>

I have a class which name is alertim and i want to keep them in an array.  
I am tring to use Arraydw but it is not working.How can i use arrays with classes.And how can i destroye all of them.Thanks all…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 17, 2008, 8:16am UTC](https://forum.juce.com/t/using-array-for-a-class/3041/2 "2008-07-17T08:16:05Z")

</div>

I think you need to take a look at the OwnedArray class instead.
