General information
Category:
Object Oriented Programming
Title:
Methods for saving data of multiple objects
i dev a container with multiple objects, where is the best place to save the properties of each object?, in each object or a universal method in the container called for each object contained?, each object is based in a class called property, where property is an object where exist the method save.
what is best:
container.property.save:
saving code...
OR
container.property.save:
this.parent.save(data)
container.save
lparameters data
saving code...
what is the best?, if i have 10 properties is good have 10 methods called save doing the same thing like 1 method in the container called for the 10 objects?
Best Regards
Francisco Morosini
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only