Week 6 B
Week 6 B
displayGrade() and attendance(). Implement two classes PG-Student and UG-Student with
necessary inputs of data.
interface Student
void displayGrade();
void attendence();
String name;
int rollno;
String grade;
double att;
name = n;
rollno=r;
grade=g;
att = a;
}
public void displayGrade() {
String name;
int rollno;
String grade;
double att;
name = n;
rollno=r;
grade=g;
att = a;
}
public void displayGrade() {
s.display();
s.attendence();
s.displayGrade();
u.display();
u.attendence();
u.displayGrade();