Ive been thinking about this for sometime and although im not close to actually starting to program this, its something thats nagging me.
2 class (Alpha1 and Alpha2)
both of these classes use a class (Beta1) to perform some calculation but with slightly different inputs.
classes Alpha1 and Alpha2 are also effected by a third class, Charlie1. Charlie1 can change another input inside Alpha1 and Alpha2 via another calculation (note: the input in Alpha1 doesnt have the same value as Alpha2).
now i know code reuse is a big thing in c# so i figured there must be a better way than just creating Alpha1 and making two methods that do the calculations Beta1 and Charlie1 and then copying and pasting that code over to Alpha2. the calculation in both Beta1 and Charlie1 is going to be long.
is this something where i could use inheritance for all of them? i.e. Beta1 inherits Alpha1 and Charline1 inherits Beta1 n values are passed to both Alpha1 and Beta1 to instantiate them? or is this a stupid idea?
Thanks for your help