Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 studentsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started