Question 5
Question 5
Question 5
class Employee {
int id;
String name;
class MultiLevelInheritance {
public static void main(String[] args) {
Salary emp = new Salary();
emp.displayEmployee();
emp.displayAccount();
emp.displaySalary();
}
}
Output: