Inheritance Coding Question to create a class person.
Create a class called Person.
Populate the class with below private fields
1. FirstName as string
2. LastName as string
3. EmailAddress as string
4. DateofBirth as DateTime
Add a constructor that accept FirstName, LastName, Email, DateofBirth as
parameters
Add read-only properties that return the following computed information:
1. IsAdult as bool - whether or not the person is over 18
2. SunSign as string - the traditional western sun sign of the person
3. IsBirthDay as bool - whether or not today is the person's birthday
4. ScreenName as string- a default screen name that you might see being
offered to a first time user of Gmail or Yahoo (e.g. Hari Joe born on May 25th, 1980
might be hdoe525 or haridoe052580)
Create a class classed Employee which should be derived from Person class.
Employee class should add the following properties:
1. Salary as double
In the Main method create object of Employee class and test the behaviour by
calling read-only properties