C
C#9mo ago
Alltman

❔ Help undrtanding code

We need to write all the classes for this main method. I don't know how to start, what is " School" here. Is bilbiotheek, persoon, autobus all objects in an object?? Please help me
No description
10 Replies
Alltman
Alltman9mo ago
I think personally School School = new(); should be School school = new School(); or not
phaseshift
phaseshift9mo ago
School school = new() is valid if there is a School class and it has a default constructor
Buddy
Buddy9mo ago
depends which version you are on
phaseshift
phaseshift9mo ago
I'm assuming the task giver is not sadistic enough to use new syntax where its not valid
Alltman
Alltman9mo ago
SchoolBiblitheek is than just another class?
phaseshift
phaseshift9mo ago
its a property on School class The type of the property will be another class
Alltman
Alltman9mo ago
and that property contains a list Boeken
phaseshift
phaseshift9mo ago
The task giver is not giving you much help by giving the same name to classes, variables, properties, ...
Alltman
Alltman9mo ago
Ok thank you very much, I think I know how I can start
Accord
Accord9mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.