Sometimes, you want to do some simple validation. For example, data should not exceed the reserved storage size for the field in the database. In this example CustomerName must be less than 10 characters. So, the client code should look like this: Customer customer = new Customer(); // customer name must be less than 10 [...]


