Say I have two objects:
Map
Table
At the moment I have something like this:
Map.MapTable(Table tab); <- Static MapTable method.
which checks if the table is mappable and then maps it but also has to check for null table.
Would it make more sense to do this:
Table tab = new Table();
Map mymap = tab.MapTable();
That way the table is responsible for checking it's own state and any checks, then creates a new map.
EDIT: A bit more info
I also have a MapTables method which takes a collection of tables, as one map can contain many tables, something like:
Map.MapTables(ICollection<Table> tab)
Would this mean that I should leave the map command on the Map type.
What do you think?