Is this a valid technique?
Posted on 1999-06-25
I have a problem that involves converting data from one type to another (type in the physical not in the code sense).
The example added as a comment below gives an example of the structure I have come up with.
What I would like thoughts on is:
i) Is it reasonable to keep the headers for the derived classes in the implementation file? (The reason I reckon this is OK is because I don't want anyone to create instances other than via the base classes factory method - and it cuts down the need for lots of files).
ii) Is there a better way to do it?
iii) Is there anything wrong with it?