Design Pattern for Data Validation
- by melodui
What would be the best design pattern for this problem:
I have an Object A. Object A can either be registered or deleted from the database depending on the user request.
Data validation is performed before registration or deletion of the object. There are a set of rules to be checked before the object can be registered and another set of rules…