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