Hackerrank : Day 12: Inheritance!
Problem Statement Welcome to Day 12! Check out this video reviewing inheritance, or just jump right into the problem. You are given two classes, Student and Grade , where Student is the base class and Grade is the derived class. Completed code for Student and stub code for Grade are provided for you in the editor. Note that Grade inherits all the properties of Student . Complete the Grade class by writing a class constructor ( Grade(String,String,int,int) ) and a char calculate() method. The calculate method should return the character representative of a Student's *Grade. Score as defined in this chart: Input Format Input is already handled for you by the code pre-filled in the editor. There are 4 lines of input containing f i r s t n a m e , l a s t n a m e , p h o n e , and...