mp
2016-12-09 19:54:17 UTC
trying layout overall architecture of a c# program
total newb c# and novice hobbiest any programing for that matter
upper level class cBuildingComponent
of which there are many kinds like
cStone : cBuildingComponent
cSteelBeam : cBuildingComponent
each element will have various properties like size weight color etc
and methods such as Draw
some properties will apply more to some elements than others
eg color might apply to a stone but not a steel beam
do i put the properties/methods in the base class with no code then each
subclass has code for that property?
a pointer to example for learning would be super, and any thoughts
appreciated
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
total newb c# and novice hobbiest any programing for that matter
upper level class cBuildingComponent
of which there are many kinds like
cStone : cBuildingComponent
cSteelBeam : cBuildingComponent
each element will have various properties like size weight color etc
and methods such as Draw
some properties will apply more to some elements than others
eg color might apply to a stone but not a steel beam
do i put the properties/methods in the base class with no code then each
subclass has code for that property?
a pointer to example for learning would be super, and any thoughts
appreciated
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus