
November 5th, 2010, 02:46 PM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 1
Time spent in forums: 23 m 41 sec
Reputation Power: 0
|
|
|
Design Case: Which approach is better?
Hello all,
I want opinions on which approach is better from software design perspective. Here is the case details:
I have three classes: State, StateMachine and Handler. StateMachine passes a State pointer to Handler. Handler can manipulate certain data within State, but SHOULD NOT modify the rest.
Thanks,
Sarmad
|