<reponame>abhisheks008/Design-and-Analysis-Algorithm-Lab-4th-Semester
// Q14. Write a program to implement the Multiple Inheritance (Gross Interface, Employee & Salary classes).
// @<NAME>
interface Gross{
    public String details();
}
class Employee1{
    protected String EmployeeName;
    public Employee1(String name) {
        super();
        this.EmployeeName = name;
    }
}
class Salary extends Employee1 implements Gross{
    int sal;
    public Salary(String name, int sal) {
        super(name); this.sal = sal;
    }
    @Override
    public String details() {
        return "Salary [Salary=" + sal + ", EmployeeName=" + EmployeeName + "]";
    }
}
public class q1 {
    public static void main(String args[]) {
        Gross obj=new Salary("Abhishek",80000); 
        System.out.println(obj.details());
    }
}

// Output :
// Salary [Salary=80000, EmployeeName=Abhishek]
