Is factory method proper design for my problem?
- by metdos
Hello Everyone, here is my problem and I'm considering to use factory method in C++, what are your opinions ?
There are a Base Class and a lot of Subclasses.
I need to transfer objects on network via TCP.
I will create objects in first side, and using this object I will create a byte array TCP message, and send it to other side.
On the other side I will decompose TCP message, I will create object and I will add this object to a polymorphic queue.