Question: (Subject : Object Oriented Programming) A system needs to have a Validation class that can validate the input for instance variables of the different classes
(Subject : Object Oriented Programming)
A system needs to have a Validation class that can validate the input for instance variables of the different classes given in Table 1. It should validate the values for the data members from different classes using Regular Expressions, such that a name can only contain alphabets from A to Z or a to z and the first letter is always a capital letter. The address should start with a number followed by one or two words (for example 16 Khyber or 16 Khyber Ave). The phone number should have a format like 0-000-0000000 where
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
