Python Forum
programming of compositions (UML) example: forest
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
programming of compositions (UML) example: forest
#3
Thanks !

OK, it means i put a list in the arguments of that class instances.

But what, when I dont know the number of trees resp. branches?
I 'd like to have a addTree resp. addBranch method in the classes.
Not sure if this is the correct way Confused
Reply


Messages In This Thread
RE: programming of compositions (UML) example: forest - by obelix - Mar-24-2019, 06:14 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020