Semester_2/OOP/Lab_09/ITStudent.java
<gh_stars>0public class ITStudent extends Student
{
    private int sID;

    public ITStudent()
    {
        super();
        this.sID = 52200000;
    }

    public ITStudent(String sName, double gpa, int sID)
    {
        super(sName, gpa);
        this.sID = sID;
    }

    public String getRank()
    {
        if(this.gpa > 8.0 && this.gpa <= 10.0)
            return "A";
        else if(this.gpa > 5.0 && this.gpa <= 8.0)
            return "B";
        return "C";
    }

    public String toString()
    {
        return this.sName + " - " + this.sID + " - " + this.gpa;
    }
}