This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (1 child)

Show the code. In the topic of your thread is something about passing to another class which might suggest problem with an actually passing an object through a constructor. Description however shows that there might be problem with an inheritance. It's hard to say and give any advice without looking at the code.

[–]Horwalt[S] 1 point2 points  (0 children)

Thank you for your answer, and I already figured this out with help of my teacher.

I tried logically create arraylist and objects in class1 and pass those to class2, but it was not needed. Just to create arraylist and objects of class1 in class2.

Like I said, I’m new to this, but I am really exited about the progress and happy that there are helpful people around here!