Copying and pasting from one application to the other takes time and is subject to error, and transfer of information using comma-separated values and other techniques is clunky at best.
In a classic design, value objects or data transfer objects in those methods are used as method parameters and return values when complex objects are required.
在经典的设计中,这些方法中的值对象或数据传输对象用作方法参数并在需要复杂对象时返回值。
3
A Data Transfer object is a way to package a collection of values in a single object so they can be passed around economically.