mp
2016-12-16 22:01:48 UTC
given that i'm in initial stage of design i'm pondering this option:
I have objects which are "cast stone"
there are different types, band, sill, header, medallion, capstone, etc
so I'm trying to envision if I should have one class CastStone with an
enum for type or have multiple classes which derive from CastStone or
ICastStone.
they each of course have similarities as well as differences. probably
no one but me can answer this but i thought i'd throw it out in case
there is something obvious to others who have been down this road before
in terms of making early design choices that simplify progress as
opposed to making things harder as the project progresses.
my naive assumption is that individual classes would eliminate a lot of
switch code in the CastStone object depending on the value of an enum,
even though the list of classes gets that much longer.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
I have objects which are "cast stone"
there are different types, band, sill, header, medallion, capstone, etc
so I'm trying to envision if I should have one class CastStone with an
enum for type or have multiple classes which derive from CastStone or
ICastStone.
they each of course have similarities as well as differences. probably
no one but me can answer this but i thought i'd throw it out in case
there is something obvious to others who have been down this road before
in terms of making early design choices that simplify progress as
opposed to making things harder as the project progresses.
my naive assumption is that individual classes would eliminate a lot of
switch code in the CastStone object depending on the value of an enum,
even though the list of classes gets that much longer.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus