hello,
I am looking for help on how to structure several classes that build up from a fundamental item.
Here is a similar sitution to what i am trying to do.
Say i sell computers. Each computer can have several configurable options like color, memory, hard drive, processor etc.
once the computer is built, it goes into a big box, maybe by itself, maybe with 5 other computers. It just can vary.
then the box full of how many computers is put on a pallet with many other boxes, each that have a different number of computers in them. each pallet can have a different number of boxes on it.
Then that pallet is put in a truck with other pallets that contain different numbers of boxes.
so, then what i would like to do is create a truck and have it tell me what is inside. a summary of totals of each thing(pallet, boxes, computers) then have it break down each individual items
truck a (44 pallets, 3000 boxes, 10,000 computers)
=>pallet 1
==>box 1
===>computer 1(black, 512m, 100gig, 2.5Ghz)
===>computer 2(white, 1gig, 75gig, 3Ghz)
===>computer 3(grey, 512m, 100gig, 3.1Ghz)
===>computer 4(black, 512m, 30gig, 2.0Ghz)
==>box 2
===>computer 1(black, 512m, 100gig, 2.5Ghz)
===>computer 2(white, 1gig 75gig, 3Ghz)
===>computer 3(grey, 512m, 100gig, 3.1Ghz)
=>pallet 2
==>box 1
===>computer 1(white, 1gig, 100gig, 3Ghz)
==>box 2
===>computer 1(black, 512m, 100gig, 2.7Ghz)
===>computer 2(grey, 1gig, 75gig, 3Ghz)
.. etc
I am able to build a class with methods and variables and interface with that no problem, i am just getting confused how i start creating classes of other classes and how to then use them.
any help is appreciated.
chuck
any help is appreciated.