Question: SOLVE IN JAVA PLEASE We have to calculate the percentage of marks obtained in two subjects (each out of 100) by student A, three subjects

SOLVE IN JAVA PLEASE
We have to calculate the percentage of marks obtained in two subjects (each out of 100) by student A, three subjects (each out of 100) by student B and three subjects (each out of 100) by student C. Create an abstract class 'Marks' with an abstract method 'myPercentage'. It is inherited by three other classes 'A', 'B' and 'C' each having a method with the same name which returns the percentage of the students. The constructor of student A takes the marks in two subjects as its parameters and the marks in three subjects as its parameters for student B and same for Student C. Create an object for each of the three classes and print the percentage of marks for all the students
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
