Tuesday 17 July 2007 8:17:35 am
Hello I have a problem with the class management, and actually I don't know how to do what I want to do :D I want to show on a webpage the content of "affairs". An "affair" has the following attribute : a project manager name and an unique affair name. Each affair can be composed of many "lots", which have the following attributes : date, number of components. So for each affair, I want to show the project manager name, the affair name, and the attributes of all the lots of this affair... I first tried to make a class Affair, with all the attributes, but the problem is that we don't know how many lots will be in an affair... So the best is to make two classes, one "affair" and one "lots". But how can I associate one affair with some lots, and print all the details on the page please ? Thanks !
|