Could/should a Value Object hold methods relevant only to itself?

56 Views Asked by At

I have a GridVO which can hold numbers. Imagine it is for Sudoku.

There are "pupulateGrid", "testColumn", "testLine", "clone" and several other methods that modify a specific instance of GridVO.

Of course, I have a Proxy which instances and holds that vo. My question, do these methods need to be in the Proxy and NOT in the vo? Or viceversa? Or it doesn't really matter.

I would use such things in the future for all such cases so its important I get this right from the start.

0

There are 0 best solutions below