I don't think I can do this but......
I have a base Class - say "tool"
I have a number of derived classes. Say, "hammer", "chisel", "screwdriver", "spanner"
I want to create a generic class that will operate on a "hammer" or a "chisel".
I can't do this because you can only have one constraint in a class class.
The actual Inheritance looks like this:-
Message
OutputMessage - these I want to operate on
out1
out2
.....
InputMessage - these I want to operate on in the same way
in1
in2
.....
Any thoughts on my mission to push back the boundaries of good implementations?
I have a base Class - say "tool"
I have a number of derived classes. Say, "hammer", "chisel", "screwdriver", "spanner"
I want to create a generic class that will operate on a "hammer" or a "chisel".
I can't do this because you can only have one constraint in a class class.
The actual Inheritance looks like this:-
Message
OutputMessage - these I want to operate on
out1
out2
.....
InputMessage - these I want to operate on in the same way
in1
in2
.....
Any thoughts on my mission to push back the boundaries of good implementations?
Comment