C
C#14mo 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
AlltmanOP14mo ago
I think personally School School = new(); should be School school = new School(); or not
phaseshift
phaseshift14mo ago
School school = new() is valid if there is a School class and it has a default constructor
Buddy
Buddy14mo ago
depends which version you are on
phaseshift
phaseshift14mo ago
I'm assuming the task giver is not sadistic enough to use new syntax where its not valid
Alltman
AlltmanOP14mo ago
SchoolBiblitheek is than just another class?
phaseshift
phaseshift14mo ago
its a property on School class The type of the property will be another class
Alltman
AlltmanOP14mo ago
and that property contains a list Boeken
phaseshift
phaseshift14mo ago
The task giver is not giving you much help by giving the same name to classes, variables, properties, ...
Alltman
AlltmanOP14mo ago
Ok thank you very much, I think I know how I can start
Accord
Accord14mo 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.
Want results from more Discord servers?
Add your server