Hi,
Let's say we have a class called A and another one called B.
and we want to have a conversion method that converts A to B.
In the software architecture point of view, which one is preferred?
write A.export()
write B.import()
write a converter class, i.e. convert(A, B) or Convert(A) or ...
if the language matters, I'm using C++
Thanks,