Employee Overtime Salary Inheritance Program | ISC Computer Science 2024 Theory
Channel:
Subscribers:
1,540
Published on ● Video Link: https://www.youtube.com/watch?v=syRC4PqJbMo
Employee Overtime Salary Inheritance Program | ISC Computer Science 2024 Theory
A super class EmpSal has been defined to store the details of an employee. Define a subclass Overtime to compute the total salary of the employee, after adding the overtime amount based on the following criteria:
If hours are more than 40, then ₹ 5000 are added to salary as an overtime amount.
If hours are between 30 and 40 (both inclusive), then ₹ 3000 are added to salary as an overtime amount.
If hours are less than 30, then the salary remains unchanged.
#isc #computerscience #java #inheritance
Other Videos By Robin Sir
Tags:
employee salary overtime inheritance java program
inheritance
java
isc
computer science
base class
subclass
super class
derived class
parent class
child class