Jfp87
08-20-2015, 10:27 AM
Guys,
I decided to create a small project to help me learn & understand class modules. The project is based around a group of dog agility clubs (girlfriend is a member of one), here is the rough structure so far:
'Club' object class:
Properties - 'Club Name', 'Club Rank', 'Owners' (each club should have it's own owners collection)
Methods - 'Add Owner'
'Clubs' collection class:
Properties - 'Count' & 'Item'
Methods - 'Add'
'Owner' object class:
Properties - 'Owner Name' & 'Owner Age'
'Owners' collection class:
Properties - 'Count' & 'Item' (for referring to individual 'Owner' objects)
Methods - 'Add'
Basically, I have looked at this for so long that I don't know what I am doing anymore.
Each club object should have an 'Owners' property which points to a collection based on the 'Owners' collection class. It's quite easy to see the relationships I am trying to create, but I am finding it more difficult to code. It's the relationships between the classes which is confusing me a bit.
If anyone can shed light on this I would appreciate it.
Thanks,
J
I decided to create a small project to help me learn & understand class modules. The project is based around a group of dog agility clubs (girlfriend is a member of one), here is the rough structure so far:
'Club' object class:
Properties - 'Club Name', 'Club Rank', 'Owners' (each club should have it's own owners collection)
Methods - 'Add Owner'
'Clubs' collection class:
Properties - 'Count' & 'Item'
Methods - 'Add'
'Owner' object class:
Properties - 'Owner Name' & 'Owner Age'
'Owners' collection class:
Properties - 'Count' & 'Item' (for referring to individual 'Owner' objects)
Methods - 'Add'
Basically, I have looked at this for so long that I don't know what I am doing anymore.
Each club object should have an 'Owners' property which points to a collection based on the 'Owners' collection class. It's quite easy to see the relationships I am trying to create, but I am finding it more difficult to code. It's the relationships between the classes which is confusing me a bit.
If anyone can shed light on this I would appreciate it.
Thanks,
J