C
C#15mo ago
Levi Soubry

❔ 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
Levi Soubry
Levi SoubryOP15mo ago
I think personally School School = new(); should be School school = new School(); or not
phaseshift
phaseshift15mo ago
School school = new() is valid if there is a School class and it has a default constructor
Buddy
Buddy15mo ago
depends which version you are on
phaseshift
phaseshift15mo ago
I'm assuming the task giver is not sadistic enough to use new syntax where its not valid
Levi Soubry
Levi SoubryOP15mo ago
SchoolBiblitheek is than just another class?
phaseshift
phaseshift15mo ago
its a property on School class The type of the property will be another class
Levi Soubry
Levi SoubryOP15mo ago
and that property contains a list Boeken
phaseshift
phaseshift15mo ago
The task giver is not giving you much help by giving the same name to classes, variables, properties, ...
Levi Soubry
Levi SoubryOP15mo ago
Ok thank you very much, I think I know how I can start
Accord
Accord15mo 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.

Did you find this page helpful?