Professional Documents
Culture Documents
1) Create a class called Person (Base class) which includes below attributes:
id – integer
phone – String
address - String
2) Create a class called Employee (child Class of Person), which includes below attributes:
name - String
monthlySalary – double
deptName - String
1. Create Employee object, populate them and print using toString() method.
2. Calculate and print Employee details along with updated annual Salary
3. Calculate and print Employee details along with taxable income for each gender.