Hello guys,
I need to design a simple piece of software, and i was wondering the best to do it.
First of all, sorry for the novice question: what is the best way to work with lists? i tried a few times and did not perceived the correct way to instanciate them and how to use them in OOP. Can anyone clear it up for me?
The second question is: i have the following classes (loosely formatted, not code)
Tenement:
tenementID Int32,
polygons Polygon, (here i need to use a list, but how?)
status TenementStatus;
Polygon:
polygonID Int32,
vertexes vertex (need to use a list here too),
areaPolygon;
Vertex:
vertexID Int32,
X Int32,
Y Int32;
Is my idea of these classes correct? Is there an easier way to do this?