Question: I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: 

`getit = newlist.get(g);`

Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it.

Could someone help with this? I am using Processing language for this.

All help will be appreciated,

Thanks in advance,

Amrita

Answer: 
Well, if you're using composition (as you are) there is no "easier way"; you just have to wrap the methods you want to expose. If you want to expose all of the methods of the composed type, then why are you using composition in the first place? You may as well just expose `SecurityClass` and `NetworkDevice` via public properties as it is functionally no different than wrapping every method and property/public field.

If it makes sense that they belong in the inheritance chain then SuperClass (oddly named as it would be a sub class...) should inherit from one of those classes. Of course you can't inherit from both in C#, but this design makes me suspect that there may be a better overall approach. It is impossible to tell from your code sample though as you don't tell us what you are actually trying to accomplish with these types.
Unfortunately there is no magic ways to do that as multiple type inheritance is not allowed in .NET.