27 Jun
2000
27 Jun
'00
7:28 a.m.
mike wrote:
This causes infinite loop because Rack.newItem calls Rack.createItem which calls my (modified) getItem
1. Leave getItem untouched. Move all that SQL-related stuff into the retrieveItem method which *is intended* to be overriden.
2. Move newItem stuff into Specialist. You have mixed 'Restaurant' and the 'FoodStore' in this snippet :-) Do this instead: Good point. I have to remember that getItem/newItem are not for overriding. But the problem remains the same. a low level method (createItem) should not call a high level method (getItem)
regards, jephte clain jclain@univ-reunion.fr