Write a complete program based on the class diagram above (in .pdf)labTest1.pdf. You are required to show inheritance concept inside your program. Use the following information to produce the code
example:
public class Student
{
protected String matricNo;
protected String name;
protected String course;
public void Student (String matricNo, String name, String course)
{
}
public void Display()
{
}
}
public class UnderGrad
{
private double CGPA;
public UnderGrad (Sring matricNo, String name, String course, double CGPA)
{
}
public void Display()
{
}
}