Inheritance

 

Parent class


 

Child class

 

Output of the program

How many scores do you want to enter 3
Enter your score: 60
Enter your score: 70
Enter your score: 90
You got a C

 

 

< Java >  <Home><Java Programs>