Q020 - Contact Details Validation Exception
Q020 - Contact Details Validation Exception
Q020 - Contact Details Validation Exception
Mr. Khan operates a big shopping complex in Alice City where customers can buy products for
their daily needs. Multiple sales executives are employed at this shopping complex for
inventory tracking and customer service.
Due to a staff shortage, the shopping complex's management started hiring new employees,
and in the first round, they took a person's basic details online.
While filling in the details, a person must ensure that the data entered is unique and without
duplication. The applicants must enter their name, address, email, mobile number, and
alternate mobile number.
Note: An exception error message should be displayed if the mobile and alternate numbers
match.
[Note : Strictly adhere to the object-oriented specifications given as a part of the problem
statement.
Follow the naming conventions as mentioned. Create separate classes in separate files.]
Consider a class called ContactDetails with the following protected member variables
And also override ToString() methods to display the contact details of applicant.
[All text in bold corresponds to the input and the rest corresponds to output.]