I have been using some newly acquired (read: n00b) OOP understanding to plan out object relationships for a project I am working on. Some of these objects will need to share a life-cycle (composition) and others will not share a life-cycle (aggregation).
Are these types of relationships available in B4a? If not, what would be the recommended work-around to simulate these type of object relationships?
For example:
University IS COMPOSED OF Departments
University HAS AN AGGREGATE OF Professors
-Destroying the University object would destroy all of the Departments objects.
-Destroying the University object would not destroy the Professors objects.
Thanks!
Eric H
Are these types of relationships available in B4a? If not, what would be the recommended work-around to simulate these type of object relationships?
For example:
University IS COMPOSED OF Departments
University HAS AN AGGREGATE OF Professors
-Destroying the University object would destroy all of the Departments objects.
-Destroying the University object would not destroy the Professors objects.
Thanks!
Eric H