/FileExtraction/Java_unseen/infotechprogrammer_learn-java-programming/_13_Interfaces/MultipleOrHybridInheritance.java
class Student {
    int rollNumber;
    void getNumber(int n) {
        rollNumber = n;
    }
    void putNumber() {
        System.out.println("Roll No : "+rollNumber);
    }
}

class Test extends Student {
    float part1,part2;
    void getMarks(float m1, float m2) {        part1 = m1;
        part2 = m2;
    }
    void putMarks() {
        System.out.println("Marks Obtained:");
        System.out.println("Part 1 = "+part1);
        System.out.println("Part 2 = "+part2);
    }
}
interface Sports {
    float sportWt = 6.0f;
    void putWt();
}

class Results extends Test implements Sports {
    float total;
    public void putWt() {
        System.out.println("Sport Wt = "+sportWt);
    }
    void display() {
        total = part1+part2+sportWt;
        putNumber();
        putMarks();
        putWt();
        System.out.println("Total Score = "+total);
    }
}

public class MultipleOrHybridInheritance {
    public static void main(String[] args) {
        Results student1 = new Results();
        student1.getNumber(365);
        student1.getMarks(27.5f,33.0f);
        student1.display();
    }
}
