A
Arjen
Hello,
Let's say that we have an array "persons" with person objects.
We also have an array with "books" with book objects.
We have from a single book only one copy.
This means that it is possible that a persons loans one or more books.
All right, let's say that we have a person ("Name: James; Age: 25") that
loans 2 books ("Title: My first book; ISBN: 23213 & Title: My last book;
ISBN: 89899").
We save our objects... (inside arrays not inside a database)
How can I see which persons have loans which books?
I understand the relations between the objects... but don't know how to get
them back.
Can you give me some sample code?
Many thanks!
Let's say that we have an array "persons" with person objects.
We also have an array with "books" with book objects.
We have from a single book only one copy.
This means that it is possible that a persons loans one or more books.
All right, let's say that we have a person ("Name: James; Age: 25") that
loans 2 books ("Title: My first book; ISBN: 23213 & Title: My last book;
ISBN: 89899").
We save our objects... (inside arrays not inside a database)
How can I see which persons have loans which books?
I understand the relations between the objects... but don't know how to get
them back.
Can you give me some sample code?
Many thanks!