views:

19

answers:

0

Hi

i need to write class named "Canvass" that holds a collection of Shapes that together form a drawing base the collection on SortedList class. this collection needs some kind of identification of the object it holds. for that purpose add a ShapeId field of type string to each Shape object. the Shape id value will be defined automatically by the appropriate constructor . the id will be of the form Xnnn , where X is a letter that denote the shape type ( R for rectangle , C for circle ... ) the nnn is a serial number starting from 1000.

i allready biuld the Shape Class ( a base class ) and the Circle , Triangle , Rectangle Classes (Derived Classes) need help to biud the "Canvass" Classs with the SortedDictionery thanks