Value Object helps in representing related values as a cohesive
unit. Assume you wish to get an address. The address can be represented by a class called Address as
Any instance of this Address may be termed Value Object or Data Transfer Object.
Advantage : The below code of invoking a method of some class like
is clumsy. What if in future more detail is added ? Representing the data as a value object simplifies the above method signature as