What's good way to pass intermediate results?# Java - 爪哇娇娃
g*y
1 楼
In a sequential computing program, what is the best way to pass intermediate
result among classes?
For example, component A generates by-product O, which will be used by
component B and C.
Make by-product O global is one-way, but not good choice.
Pass O from A to B, C is another way, but I don't like that idea either. A
becomes depending on B and C.
result among classes?
For example, component A generates by-product O, which will be used by
component B and C.
Make by-product O global is one-way, but not good choice.
Pass O from A to B, C is another way, but I don't like that idea either. A
becomes depending on B and C.