Inheritance Overriding
Inheritance Overriding
d) Create a parameterized constructor that will call the constructor of the parent class
e) Create a method that will return a value to calculate the total Salary by the Employee
f) Create an overriding method to display all the member variables. The method should
invoke/call the super class display method and then display also all the member
b) Declare a member variable Total number of teaching hours and Advising hours
d) Create a parameterized constructor that will call the constructor of the parent class
e) Create a method that will return a value to determine the status of the Employee based
Advising hours is greater than or equal to 2 then the status of the Employee is
“Full Load”.
f) Create an overriding method to display all the member variables. The method should
invoke/call the super class display method and then display also all the member
Read the input, call the necessary methods, and display the required output as shown
below