Sinu  Joseph

Sinu Joseph

  • NA
  • 136
  • 65.6k

C# Exception Handling

May 29 2013 9:50 AM
create a reference type called person.Populate the person class with the following properties to store the following info:

firstname,lastname,email address, date of birth

Add constructor that accept the following [parameter list:

all four parameters (first,last,email,dateofbirth)

Add readonly property that return the following  computed information

Adult - whether or not the person is over 18
birthday - whether or not today is the person birthday

handle the following execptions

date of birth is in the future
date of birth is too far in the past(we're only dealing with who are alive)
invalid email address

CAN ANYBODY HELP ME OUT TO SOLVE THESE 
PLZ..


Answers (26)